Re: How to specify Y-axis label in LIVE_PLOT? [message #12676 is a reply to message #12431] |
Thu, 06 August 1998 00:00  |
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)
|
|
|