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 #84040 is a reply to message #84039] Sat, 20 April 2013 17:05 Go 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.

Well, this is complicated. :-(

I'm going out for the evening, but this should get you going, I guess:

IDL> print, cgSymbol('lambda')
!4k!X
IDL> cgplot, findgen(10), findgen(10), xtitle='$\Omega$$\sub!4k!X$'

The problem is a substitution inside a substitution. The software is not
set up currently to handle something like this. I'll see what I can do
about it later.

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: Sun Oct 12 13:29:43 PDT 2025

Total time taken to generate the page: 1.44085 seconds