Re: color plot in postscript [message #65758 is a reply to message #65677] |
Fri, 20 March 2009 06:22   |
David Klassen
Messages: 27 Registered: December 2004
|
Junior Member |
|
|
On Mar 20, 8:47 am, David Fanning <n...@dfanning.com> wrote:
>
> It is truly amazing with what we put up with sometimes.
> But, writing the wrapper would irritate me even more.
> Why am I supporting this stupid color index way of
> specifying color when I don't use it anymore, ever,
> unless under duress and because IDL forces me to?
Well, to play devil's advocate here, using a color index is good
for doing multiple plots of differing colors.
plot, x, y[0,*], /nodata
for i=1,7 do oplot x, y[i,*], color=i
Of course, I realize one could do
clrvec=['Red','Blue','Green',...]
and then use
for i=1,7 do oplot x, y[i,*], color=clrvec[i]
to get the same result.
|
|
|