Re: Earth Symbol [message #75459] |
Mon, 14 March 2011 09:31  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 3/14/11 9:19 AM, Chris Torrence wrote:
> I assume you are using direct graphics? If so, I'm not sure what the
> problem is with your fonts. I am able to use the "!20S!3" in both the
> plot title and xyouts, using either a direct graphics window or sent
> to a postscript file. I am on a Win32 box.
>
> The "$\oplus$" (along with the other LaTeX commands) is only available
> for new graphics. For example:
>
> x = FINDGEN(10)
> y = RANDOMU(s,10)
> p = PLOT(x, y, TITLE="$\oplus$")
> ; To get the other planets (and the Sun!) you need to use a Unicode
> font:
> t = TEXT(5,0.5,"$\Earth \Sun \Saturn$", /DATA, FONT_NAME='Arial
> Unicode MS')
Well, you can use the new LaTeX commands with direct graphics if you use
the new TEX2IDL routine distributed with IDL 8.0:
IDL> xyouts, 0.5, 0.5, charsize=5., /normal, tex2idl('$\oplus$'), font=1
Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|
Re: Earth Symbol [message #75461 is a reply to message #75459] |
Mon, 14 March 2011 08:19   |
chris_torrence@NOSPAM
Messages: 528 Registered: March 2007
|
Senior Member |
|
|
Hi Tim,
I assume you are using direct graphics? If so, I'm not sure what the
problem is with your fonts. I am able to use the "!20S!3" in both the
plot title and xyouts, using either a direct graphics window or sent
to a postscript file. I am on a Win32 box.
The "$\oplus$" (along with the other LaTeX commands) is only available
for new graphics. For example:
x = FINDGEN(10)
y = RANDOMU(s,10)
p = PLOT(x, y, TITLE="$\oplus$")
; To get the other planets (and the Sun!) you need to use a Unicode
font:
t = TEXT(5,0.5,"$\Earth \Sun \Saturn$", /DATA, FONT_NAME='Arial
Unicode MS')
Cheers,
Chris
ITTVIS
|
|
|
|
|
|
|
Re: Earth Symbol [message #75657 is a reply to message #75459] |
Mon, 14 March 2011 11:47  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Mar 14, 1:31 pm, Michael Galloy <mgal...@gmail.com> wrote:
> Well, you can use the new LaTeX commands with direct graphics if you use
> the new TEX2IDL routine distributed with IDL 8.0:
>
> IDL> xyouts, 0.5, 0.5, charsize=5., /normal, tex2idl('$\oplus$'), font=1
Was this ever mentioned anywhere? I had never heard of tex2idl(). It
does not seem to be present in the help.
|
|
|