Re: Special Characters in IDL [message #35375] |
Fri, 30 May 2003 10:41 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Liam Gumley (Liam.Gumley@ssec.wisc.edu) writes:
> An alternative for plotting mathematical symbols is TeXtoIDL by Matthew
> Craig:
>
> http://physweb.mnstate.edu/mcraig/TeXtoIDL/
>
> For example, to plot a "less than or equal to" symbol:
>
> IDL> xyouts, 0.5, 0.0, textoidl('\leq'), /normal
>
> It works identically for vector and PostScript fonts.
This looks promising, Liam. Much easier. (Although
I had to read your book before I discovered that I
had to set the FONT keyword *both* on the graphics
command AND in the TextoIDL call!)
But why is the symbol offset to the top of the line?
I can't find any way to correct this.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Special Characters in IDL [message #35376 is a reply to message #35375] |
Fri, 30 May 2003 10:14  |
Liam E. Gumley
Messages: 378 Registered: January 2000
|
Senior Member |
|
|
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.19413b86cef0dbd7989bb9@news.frii.com...
> Have you ever tried to use special characters in IDL (I'm
> thinking specifically of the less-than-or-equal sign) *and*
> get them to print in PostScript?
>
> That was just a bit more complicated than I wanted it
> to be. (How come there is no reference to "unicode" in
> the IDL documentation!?) Anyway, because I don't want to
> go through that again, I wrote up a little article about
> it. You can find it in the usual place.
An alternative for plotting mathematical symbols is TeXtoIDL by Matthew
Craig:
http://physweb.mnstate.edu/mcraig/TeXtoIDL/
For example, to plot a "less than or equal to" symbol:
IDL> xyouts, 0.5, 0.0, textoidl('\leq'), /normal
It works identically for vector and PostScript fonts. To view the symbols
supported by TeXtoIDL:
IDL> showtex
More details are on pages 255-257 of my book (see link below).
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|