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

Home » Public Forums » archive » How to specify Y-axis label in LIVE_PLOT?
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
How to specify Y-axis label in LIVE_PLOT? [message #12431] Wed, 05 August 1998 00:00 Go to next message
Craig Hamilton is currently offline  Craig Hamilton
Messages: 28
Registered: December 1996
Junior Member
Hello all,

I'm trying to learn to use LIVE_PLOT in IDL5.1 and can't figure out how to
specify the
label for the y-axis (YTITLE in the old PLOT routine). I've spent a good
bit of time
reading up on LIVE_PLOT and LIVE_STYLE, but must be overlooking something.
It always comes up labelled as "Y". If I click on it, I get a properties
sheet with
an entry for title and I can change it there, but I don't see how to get it
specified
programatically on creation.

Is there a way to do it?

Thanks,
Craig Hamilton
cah@medeng.bgsm.edu
Re: How to specify Y-axis label in LIVE_PLOT? [message #12676 is a reply to message #12431] Thu, 06 August 1998 00:00 Go to previous message
Michael Werger is currently offline  Michael Werger
Messages: 34
Registered: May 1997
Member
Craig Hamilton wrote:

> Hello all,
>
> I'm trying to learn to use LIVE_PLOT in IDL5.1 and can't figure out how to
> specify the
> label for the y-axis (YTITLE in the old PLOT routine). I've spent a good
> bit of time
> reading up on LIVE_PLOT and LIVE_STYLE, but must be overlooking something.
> It always comes up labelled as "Y". If I click on it, I get a properties
>

Hello,
I posted the answer some weeks ago - forgive my repetition, but now the old
article follows:

A way to do this with LIVE_STYLE is:

IDL> x = findgen(10) ; only for example...
IDL> y = sin(x)
IDL> style=live_style('plot',$
xaxis_properties={axis:'Independent Variable'})
IDL> live_plot,y,independent=x,style=style

This works also for the yaxis:

IDL> style=live_style('plot',$
yaxis_properties={axis:'Dependent Variable'})
IDL> live_plot,y,independent=x,style=style



--
Michael Werger ------------o
ESA ESTEC & Praesepe B.V. |
Astrophysics Division mwerger@astro.estec.esa.nl|
| Postbus 299 http://astro.estec.esa.nl |
| 2200 AG Noordwijk +31 71 565 3783 (Voice)
o------------------- The Netherlands +31 71 565 4690 (FAX)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [Object IDL] self-documenting objects ...
Next Topic: clean_phase.pro?

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

Current Time: Fri Oct 10 16:21:57 PDT 2025

Total time taken to generate the page: 1.03961 seconds