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 #7805 is a reply to message #7800] Mon, 13 January 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bobby Allen <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.

Try this:

x = 5
thisTitle = 'Number ' + STRTRIM(x,2)
PLOT, FINDGEN(10), Title=thisTitle

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
[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 08:44:21 PDT 2025

Total time taken to generate the page: 1.19933 seconds