From 0cf75175e5abd2cacef1fd1a11bcde2aa7faac4e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 18 May 2013 09:00:31 -0400 Subject: [PATCH] kappa-sawteeth.asy: Change colors between traces Thanks Uncle Ricky! --- src/figures/kappa-sawteeth/kappa-sawteeth.asy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/figures/kappa-sawteeth/kappa-sawteeth.asy b/src/figures/kappa-sawteeth/kappa-sawteeth.asy index a3be204..0c5be9c 100644 --- a/src/figures/kappa-sawteeth/kappa-sawteeth.asy +++ b/src/figures/kappa-sawteeth/kappa-sawteeth.asy @@ -21,6 +21,8 @@ void graphSawtooth(string file="datafile", real k, } real[] k = {0.001, 0.01, 0.05, 0.1, 0.5, 1, 10}; +pen[] p = {blue, green, red, cyan, magenta, yellow, black}; + int i; for (i=k.length-1; i>=0; --i) {/* count down so legend and plot orders match */ string file = format("k-%f", k[i])+"."+"dat"; @@ -31,7 +33,7 @@ for (i=k.length-1; i>=0; --i) {/* count down so legend and plot orders match */ label = math("k="+units(format("%f",k[i]),"nN/nm")); // TODO: rainbow pen(N, i) graphSawtooth(file=file, k=k[i], xscale=xscale, fscale=fscale, - df=300e-12*i, p=psoft, t=label); + df=300e-12*i, p=p[i], t=label); } xlimits(0, 300e-9*xscale, crop=true); -- 2.26.2