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

Home » Public Forums » archive » Re: Subscripts with greek symbols
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: Subscripts with greek symbols [message #84038 is a reply to message #84031] Sun, 21 April 2013 08:24 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Harish Khandrika writes:

> I am trying to create a plot with axis titles that have greek
letters and greek subscripts, however I'm having a hard time trying to
get it to do what I would like it to do. In tex-speak, I want it to
display something to the effect of "\Omega_\Lambda". Presently if I do
something like
>
> cgplot, findgen(10), findgen(10), xtitle='$\Omega$$\sub\Lambda$', this literally writes the word '\Lambda' in subscript terms.
>
> What is the correct procedure for producing "\Omega_\Lambda" or any other greek letter for a subscript/superscript?
>
> Any help would be greatly appreciated.

I have added the ability to use Greek characters as subscripts or
superscripts to the Coyote Library. In this example, you would formulate
the text like this, using the "\\" symbol to indicate the Greek letter
to be used:

cgPlot, cgDemoData(1), XTitle='$\Omega$$\sub\\lambda$', Charsize=2.0

To create a superscript, you could do this:

cgPlot, cgDemoData(1), XTitle='$\Omega$$\up\\lambda$', Charsize=2.0

You will need to update your cgCheckForSymbols program:

http://www.idlcoyote.com/programs/cgcheckforsymbols.pro

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: I need to bulid a digital phantom urgently, Thanks for help!
Next Topic: Re: IDL issues: poly_fit.pro.

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

Current Time: Sat Nov 29 21:22:23 PST 2025

Total time taken to generate the page: 0.96713 seconds