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 
Return to the default flat view Create a new topic Submit Reply
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)
[Message index]
 
Read Message
Read Message
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 02:12:21 PDT 2025

Total time taken to generate the page: 0.88334 seconds