Re: plot some data with a legend [message #68399] |
Wed, 28 October 2009 05:06 |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
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:
>
> 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.")
i know how to do that in iplot, just wish to do in plot and oplot
view.
Cheers
|
|
|
Re: plot some data with a legend [message #68400 is a reply to message #68399] |
Wed, 28 October 2009 04:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
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.")
|
|
|
Re: plot some data with a legend [message #68401 is a reply to message #68400] |
Wed, 28 October 2009 04:27  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Oct 28, 7:59 am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to plot some data (I don’t 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)
> …….
> What is the best way for this?
> Any help highly would be appriciated
> Cheers
> Dave
You can do something like
iplot,x,y1,color=[255,0,0],name='y1',/insert_legend
iplot,x,y2,color=[0,255,0],name='y2',/insert_legend,/over
|
|
|
Re: plot some data with a legend [message #68402 is a reply to message #68401] |
Wed, 28 October 2009 04:25  |
cgguido
Messages: 195 Registered: August 2005
|
Senior Member |
|
|
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 am, Dav_Poreh <d.po...@gmail.com> wrote:
> Folks
> I want to plot some data (I don’t 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)
> …….
> What is the best way for this?
> Any help highly would be appriciated
> Cheers
> Dave
|
|
|