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

Home » Public Forums » archive » multiple line plots in colors & legend
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
multiple line plots in colors & legend [message #56207] Mon, 15 October 2007 07:51
rkombiyil is currently offline  rkombiyil
Messages: 59
Registered: March 2006
Member
Hello!
I have a need to superpose a bunch of plots (XY) and this is what I
did: (It is a kludge, I am sure elegant solutions exist.. sometimes I
wish science to be devoid of pretty plots..heh) .., to give an
example -
--
loadct,39
plot,a,b[0]
for k=1,n do oplot,a,b[i],color=25+k*15
--
In this particular case, n=15, so color was < 255. But this is not a
general and elegant solution. Also, one has to spread them out well to
actually distinguish between colors.To ask the questions straight:

#1 Is there some way one could plot bunch of line plots, by calling
different colors as a function of loop index and distinguish the
colors well too when you have larger loop index values?

#2 Is there a way to do the "legend" also as a function of the color
via the loop index? I mean the legend should show the color line and
whatever it denotes inside the box..

I looked at David's FSC_color (sp?), but I don't want to call them by
name, I want the computer to do it for me :-) I want to have this cake
and eat it too ;-) I also tried "legend" but hasn't looked at it
enough to make the judgement whether it would do the above.

Any elegant solutions to this "everybody but me loves pretty plots"
problem?

Thanks,
~rk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: how to get pixel data corresponding to some coordinates' points?
Next Topic: Re: How to export latlongs?

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

Current Time: Wed Oct 08 19:23:41 PDT 2025

Total time taken to generate the page: 0.01527 seconds