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

Home » Public Forums » archive » Text in plots
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
Text in plots [message #16940] Fri, 27 August 1999 00:00 Go to next message
Alberto Verga is currently offline  Alberto Verga
Messages: 3
Registered: April 1999
Junior Member
Is there a simple way to write greek symbols and subscripts in the
titles and labels of a plot?
Something like:

plot, y, xtitle='\omega_t',ytitle='r^2/\alpha'

Thanks,

--
Alberto Verga - verga@marius.univ-mrs.fr
Institut de Recherche sur les Ph�nom�nes Hors Equilibre.
12, av. G�n�ral Leclerc, 13003 Marseille, France.
Tel: 33 (0) 4 91 64 44 76 - Fax 33 (0) 4 91 08 16 37
Re: Text in Plots [message #53490 is a reply to message #16940] Wed, 18 April 2007 09:27 Go to previous messageGo to next message
Marshall Perrin is currently offline  Marshall Perrin
Messages: 44
Registered: December 2005
Member
David Fanning <news@dfanning.com> wrote:
> Something is seriously wrong with you. Please turn in your
> computer science credentials immediately!

Hey, I'm an astrophysicist. I don't think we're allowed to have
any real computer science credentials. :-)

(Well, apart from a few notable exceptions like J.D., whose very
impressive CUBISM IRS-spectral-cube-building application just saved
me untold hours of work last night. But I, sadly, am mostly
just another one of the great unwashed masses of scientists who can only
dream of someday writing code like that.)

- Marshall
Re: Text in Plots [message #53519 is a reply to message #16940] Tue, 17 April 2007 04:51 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marshall Perrin writes:

> Actually learning IDL format codes would require more brain storage
> than I have left available. :-)

You've got to be kidding me! You don't think '!6!sA!r!u!9 %!6!n'
is a simple way to create an angstrom sign!?

http://www.dfanning.com/misc_tips/angstrom.html

Something is seriously wrong with you. Please turn in your
computer science credentials immediately!

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Text in Plots [message #53520 is a reply to message #16940] Tue, 17 April 2007 00:45 Go to previous messageGo to next message
Marshall Perrin is currently offline  Marshall Perrin
Messages: 44
Registered: December 2005
Member
David Fanning <news@dfanning.com> wrote:
> ebertf@gmx.de writes:
>
>> I would like to know if it is possible to show more compilcated Texts
>> in XTITLE or YTITLE with the PLOT procedure, or any other Texts
>> associated with plots (title, annotations)
>> For example texts with subscipts or mixed fonts like greek letters:
>> like T_alpha
>> The simple fonts are not enough to make nice printouts....
>
> Um, yes:
>
> IDL> ? format codes
>
> Look for the "embedded in IDL strings" section.

Also do a web search for the 'textoidl' package if you want a
more user-friendly solution than the default format codes.
E.g. "!7m!X F!D!7m!X!N" vs. textoidl('\nu F_\nu')

Actually learning IDL format codes would require more brain storage
than I have left available. :-)

- Marshall
Re: Text in Plots [message #53526 is a reply to message #16940] Mon, 16 April 2007 10:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ebertf@gmx.de writes:

> I would like to know if it is possible to show more compilcated Texts
> in XTITLE or YTITLE with the PLOT procedure, or any other Texts
> associated with plots (title, annotations)
> For example texts with subscipts or mixed fonts like greek letters:
> like T_alpha
> The simple fonts are not enough to make nice printouts....

Um, yes:

IDL> ? format codes

Look for the "embedded in IDL strings" section.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Text in Plots [message #53589 is a reply to message #53490] Wed, 18 April 2007 10:41 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Marshall Perrin writes:

> (Well, apart from a few notable exceptions like J.D., whose very
> impressive CUBISM IRS-spectral-cube-building application just saved
> me untold hours of work last night. But I, sadly, am mostly
> just another one of the great unwashed masses of scientists who can only
> dream of someday writing code like that.)

Yeah, and I have an idea that JD wishes he was *paid* for
those untold hours of work he has saved all of us over
the years. :-)

Cheers,

David

P.S. Not that public acknowledgement doesn't help, but
it just doesn't, you know, pay the tuition bills. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ITT VIS: Space Science Research Update
Next Topic: Re: Oh No...

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

Current Time: Wed Oct 08 19:15:19 PDT 2025

Total time taken to generate the page: 0.00443 seconds