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

Home » Public Forums » archive » Re: italic greek?
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
Re: italic greek? [message #82414] Tue, 11 December 2012 22:00
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Correct me if I'm wrong, but aren't the lowercase Greek letters all "italic" in both the Hershey and Truetype fonts that ship with IDL?

So couldn't you just use the !M to switch to the symbol font, then use "q" to insert the theta?

In new graphics, this would look like either one of the following:
p = plot(/test, title='Abc $\theta$ def')
p = plot(/test, title='Abc !Mq def')

The syntax in either DG or CG would be similar.

Cheers,
Chris
ExelisVIS
Re: italic greek? [message #82429 is a reply to message #82414] Tue, 11 December 2012 10:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

>
> sdjohnson.mail@gmail.com writes:
>
>> I am trying to make a plot with an italicized greek symbol (theta) using the various cg commands, but have not found a way of doing so. Does anyone know how?
>
> I think you are probably going to have to find
> an italicized Greek font somewhere...

You can obviously make italic versions of Postscript fonts,
including the Symbol font, which is used to create Greek
characters:

Set_Plot, 'PS'
Device, /Italic, /Symbol

But, there is no way in IDL that I know of to switch
from an non-italic to italic and back to non-italic
font inside a text string. So, if you wanted an italic
theta and non-italic text otherwise, you would have to
divide the text string into italic and non-italic parts
and write them separately.

Seems like a lot of work for very little benefit
to me. :-)

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.")
Re: italic greek? [message #82430 is a reply to message #82429] Tue, 11 December 2012 10:00 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
sdjohnson.mail@gmail.com writes:

> I am trying to make a plot with an italicized greek symbol (theta) using the various cg commands, but have not found a way of doing so. Does anyone know how?

I think you are probably going to have to find
an italicized Greek font somewhere...

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: increment an array subset based on another subset
Next Topic: Re: Displaying Cartesian coordinate data on a sphere

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

Current Time: Wed Oct 08 15:07:09 PDT 2025

Total time taken to generate the page: 0.00624 seconds