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

Home » Public Forums » archive » Re: PS Sun 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: PS Sun Symbol [message #34884] Mon, 28 April 2003 12:58
Chad Bender is currently offline  Chad Bender
Messages: 21
Registered: July 2001
Junior Member
Yes, I'm aware of the vector version of it. I just prefer the printed look
of the hardware fonts. On that note, is it possible to switch between
vector and hardware fonts in the middle of a text string? I suppose
I could do something tricky like plotting the axis twice -- first do
the text and ticks in hardware fonts, and then overplot in vector fonts
the sun symbol. Aligning things would be difficult, but I might give it
a shot.

Chad

Chris Torrence <chris_torrence@yahoo.com> wrote:
: Hi Chad,

: If you want to use vector-drawn fonts instead, there is a very nice
: sun symbol under the math font:
: IDL> !p.font = -1
: IDL> xyouts, 0.5, 0.5, '!9n'
: The !9 switches to math font, and the "n" is the character
: representing the sun.

: You can use:
: IDL> showfont,9,'Math'
: to view all of the available symbols.
: -Chris


: Chad Bender <cbender@hapuna.ess.sunysb.edu> wrote in message news:<3ea9c972_4@marge.ic.sunysb.edu>...
:> I'm trying to make a sun symbol (circle with a dot in the middle) under
:> PS hardware fonts. There is a command (sunsymbol) in the astronomy users
:> library that does this, however the dot is noticeably off center. Has
:> anyone come up with a better way of generating the symbol?
:>
:> For reference, the command used in the 'sunsymbol' function is:
:>
:> device,/AVANTGARDE,/BOOK,ISOLATIN=0,FONT_INDEX = 20
:> return, '!20!S!DO!R!I ' + string(183b) + '!X!N'
:>
:> I checked the archives, but the last post referencing this topic was way
:> back in 97.
:>
:> Also:
:> IDL> print, !version
:> { x86 linux unix 5.4 Sep 25 2000 32 32}
:>
:>
:> Thanks
:> Chad Bender
Re: PS Sun Symbol [message #34885 is a reply to message #34884] Mon, 28 April 2003 12:44 Go to previous message
chris_torrence is currently offline  chris_torrence
Messages: 2
Registered: November 2002
Junior Member
Hi Chad,

If you want to use vector-drawn fonts instead, there is a very nice
sun symbol under the math font:
IDL> !p.font = -1
IDL> xyouts, 0.5, 0.5, '!9n'
The !9 switches to math font, and the "n" is the character
representing the sun.

You can use:
IDL> showfont,9,'Math'
to view all of the available symbols.
-Chris


Chad Bender <cbender@hapuna.ess.sunysb.edu> wrote in message news:<3ea9c972_4@marge.ic.sunysb.edu>...
> I'm trying to make a sun symbol (circle with a dot in the middle) under
> PS hardware fonts. There is a command (sunsymbol) in the astronomy users
> library that does this, however the dot is noticeably off center. Has
> anyone come up with a better way of generating the symbol?
>
> For reference, the command used in the 'sunsymbol' function is:
>
> device,/AVANTGARDE,/BOOK,ISOLATIN=0,FONT_INDEX = 20
> return, '!20!S!DO!R!I ' + string(183b) + '!X!N'
>
> I checked the archives, but the last post referencing this topic was way
> back in 97.
>
> Also:
> IDL> print, !version
> { x86 linux unix 5.4 Sep 25 2000 32 32}
>
>
> Thanks
> Chad Bender
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: xcontour and ticks
Next Topic: Allowable parameters in event_pro?

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

Current Time: Fri Oct 10 11:37:54 PDT 2025

Total time taken to generate the page: 1.04251 seconds