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

Home » Public Forums » archive » Re: variables in plot titles
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: variables in plot titles [message #7798] Tue, 14 January 1997 00:00 Go to previous message
f055 is currently offline  f055
Messages: 29
Registered: April 1995
Junior Member
In article <32DA4B51.167E@gl.umbc.edu>, allen bobby <ballen1@gl.umbc.edu> writes:
-I wanted to know if it is possible to have the value of a variable in
-the title of a plot? FOr instance, say I want the value of x in the
-title, because it might change with each complilation for some reason.
-How would I do that, if it's possible.

An easy one.

IDL> i=1951
IDL> plot,data,title='A plot of data for year '+string(i,format='(I4)')

The format parameter is optional, you could just use string(i).

Tim

......................... Dr Tim Osborn . t.osborn@uea.ac.uk
.... ___/.. __ /.. /.. /. Senior Research Associate . phone:01603 592089
... /..... /. /.. /.. /.. Climatic Research Unit . fax: 01603 507784
.. /..... __/.. /.. /... School of Environmental Sciences.
. /..... /\ ... /.. /.... University of East Anglia .
____/.._/..\_..____/..... Norwich NR4 7TJ .
......................... UK .
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: reading and processing netCDF Datafiles
Next Topic: MINOR CORRECTION

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

Current Time: Sat Oct 11 05:21:49 PDT 2025

Total time taken to generate the page: 0.88654 seconds