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

Home » Public Forums » archive » Re: plot some data with a 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
Re: plot some data with a legend [message #68399] Wed, 28 October 2009 05:06
d.poreh is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
penteado is currently offline  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 Go to previous message
cgguido is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: plot some data with a legend
Next Topic: widget_stub

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

Current Time: Sun Oct 12 00:39:33 PDT 2025

Total time taken to generate the page: 1.35879 seconds