comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » color plot in postscript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: color plot in postscript [message #65758 is a reply to message #65677] Fri, 20 March 2009 06:22 Go to previous messageGo to previous message
David Klassen is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Google Groups and ENVI 4.6.1
Next Topic: Passing more than one variable out of a function.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:02:29 PDT 2025

Total time taken to generate the page: 1.84049 seconds