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

Home » Public Forums » archive » Re: Earth Symbol
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: Earth Symbol [message #75459] Mon, 14 March 2011 09:31 Go to next message
Michael Galloy is currently offline  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 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  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 #75466 is a reply to message #75461] Mon, 14 March 2011 06:41 Go to previous messageGo to next message
Tim Bovaird is currently offline  Tim Bovaird
Messages: 4
Registered: March 2011
Junior Member
On Mar 14, 9:41 pm, Nikola <nikola.vi...@gmail.com> wrote:
> On Mar 13, 6:26 pm, Tim Bovaird <tbo...@gmail.com> wrote:
>
>> Has anyone came up with a method to print the earth symbol (\oplus in
>> latex)? Same question has been asked for the sun symbol and answered
>> with the sunsymbol function, however I haven't been able to find a
>> solution anywhere for the earth symbol. Any help would be appreciated.
>
>> Thanks, Tim
>
> Is this what you're looking for?
>
> Earth = '!20S!3'
> Sun = '!9n!3'

Thanks. This works in xyouts but not in the plot titles, giving the
error "Unable to find PostScript font metric file: <Undefined-User-
Font>."
Re: Earth Symbol [message #75472 is a reply to message #75466] Mon, 14 March 2011 03:41 Go to previous messageGo to next message
Nikola is currently offline  Nikola
Messages: 53
Registered: November 2009
Member
On Mar 13, 6:26 pm, Tim Bovaird <tbo...@gmail.com> wrote:
> Has anyone came up with a method to print the earth symbol (\oplus in
> latex)? Same question has been asked for the sun symbol and answered
> with the sunsymbol function, however I haven't been able to find a
> solution anywhere for the earth symbol. Any help would be appreciated.
>
> Thanks, Tim

Is this what you're looking for?

Earth = '!20S!3'
Sun = '!9n!3'
Re: Earth Symbol [message #75473 is a reply to message #75472] Sun, 13 March 2011 19:58 Go to previous messageGo to next message
Tim Bovaird is currently offline  Tim Bovaird
Messages: 4
Registered: March 2011
Junior Member
On Mar 14, 6:39 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Mar 13, 2:26 pm, Tim Bovaird <tbo...@gmail.com> wrote:
>
>> Has anyone came up with a method to print the earth symbol (\oplus in
>> latex)? Same question has been asked for the sun symbol and answered
>> with the sunsymbol function, however I haven't been able to find a
>> solution anywhere for the earth symbol. Any help would be appreciated.
>
> If it is IDL 8, '$\oplus$'.
>
> By the way, can we have the Sun in 8.1?

Perhaps I'm missing something but that doesn't work for me in my
postscript plot. Neither do any of these:
xtitle='R'+'$\oplus$'
xtitle='R'+TexToIDL('\oplus')
xtitle='R'+TexToIDL('$\oplus$')

I'm using version 8.0.0
Re: Earth Symbol [message #75474 is a reply to message #75473] Sun, 13 March 2011 12:39 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 13, 2:26 pm, Tim Bovaird <tbo...@gmail.com> wrote:
> Has anyone came up with a method to print the earth symbol (\oplus in
> latex)? Same question has been asked for the sun symbol and answered
> with the sunsymbol function, however I haven't been able to find a
> solution anywhere for the earth symbol. Any help would be appreciated.

If it is IDL 8, '$\oplus$'.

By the way, can we have the Sun in 8.1?
Re: Earth Symbol [message #75657 is a reply to message #75459] Mon, 14 March 2011 11:47 Go to previous message
penteado is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Coyote help
Next Topic: all combinations from two lists

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

Current Time: Wed Oct 08 15:39:28 PDT 2025

Total time taken to generate the page: 0.00644 seconds