Folks
I want to plot some data (I don=92t know how many column) in a single
plot and put a legend for all this plot with different color. I mean
for example:
-plot column one in red (and put in legend a line with red color)
-plot column two (over plot on the previous plot) in green (and put in
legend a line with green color)
=85=85.
What is the best way for this?
Any help highly would be appriciated
Cheers
Dave
|
|
0
|
|
|
|
Reply
|
d.poreh (362)
|
10/28/2009 9:59:59 AM |
|
Did you search this group? You'll find many references to D. Fanning's
legend.pro
I think his site is dfanning.com (not sure cos I have it bookmarked -
I refer to it soooooo often)
good luck,
Gianguido
On Oct 28, 9:59=A0am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to plot some data (I don=92t know how many column) in a single
> plot and put a legend for all this plot with different color. I mean
> for example:
> -plot column one in red (and put in legend a line with red color)
> -plot column two (over plot on the previous plot) in green (and put in
> legend a line with green color)
> =85=85.
> What is the best way for this?
> Any help highly would be appriciated
> Cheers
> Dave
|
|
0
|
|
|
|
Reply
|
gianguido.cianci (137)
|
10/28/2009 11:25:19 AM
|
|
On Oct 28, 7:59=A0am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to plot some data (I don=92t know how many column) in a single
> plot and put a legend for all this plot with different color. I mean
> for example:
> -plot column one in red (and put in legend a line with red color)
> -plot column two (over plot on the previous plot) in green (and put in
> legend a line with green color)
> =85=85.
> What is the best way for this?
> Any help highly would be appriciated
> Cheers
> Dave
You can do something like
iplot,x,y1,color=3D[255,0,0],name=3D'y1',/insert_legend
iplot,x,y2,color=3D[0,255,0],name=3D'y2',/insert_legend,/over
|
|
0
|
|
|
|
Reply
|
pp.penteado (366)
|
10/28/2009 11:27:44 AM
|
|
Gianguido Cianci writes:
> Did you search this group? You'll find many references to D. Fanning's
> legend.pro
> I think his site is dfanning.com (not sure cos I have it bookmarked -
> I refer to it soooooo often)
Alas, this useful routine is not mine, but Ray Sterner's.
You can find it on the Johns Hopkins Univ. Applied Physics Lab
web page:
http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
0
|
|
|
|
Reply
|
news2122 (4023)
|
10/28/2009 11:59:52 AM
|
|
On 28 Okt., 03:59, David Fanning <n...@dfanning.com> wrote:
> Gianguido Cianci writes:
> > Did you search this group? You'll find many references to D. Fanning's
> > legend.pro
> > I think his site is dfanning.com (not sure cos I have it bookmarked -
> > I refer to it soooooo often)
>
> Alas, this useful routine is not mine, but Ray Sterner's.
> You can find it on the Johns Hopkins Univ. Applied Physics Lab
> web page:
>
> =A0 =A0http://fermi.jhuapl.edu/s1r/idl/s1rlib/local_idl.html
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
i know how to do that in iplot, just wish to do in plot and oplot
view.
Cheers
|
|
0
|
|
|
|
Reply
|
d.poreh (362)
|
10/28/2009 12:06:31 PM
|
|
|
4 Replies
29 Views
(page loaded in 0.072 seconds)
|