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

Home » Public Forums » archive » Dot miscentered in \sun symbol of cgsymbol?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Dot miscentered in \sun symbol of cgsymbol? [message #89822 is a reply to message #89811] Fri, 05 December 2014 05:46 Go to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
On Thursday, December 4, 2014 3:41:21 PM UTC+1, David Fanning wrote:
> Mats Löfdahl writes:
>
>> That made the sun symbol look right, but now it doesn't respond to subscripting:
>>
>> IDL> cgset_ttfont, 'dejavusans'
>> IDL> cgplot, [0, 1], [0, 1], xtitle = 'R$\sub$$\sun$', output = 'test.pdf'
>>
>> The new version of test.pdf is now at the same url as before: http://www.isf.astro.su.se/~mats/test.pdf
>
> This needs to be explained better in the documentation, but construct
> your string like this:
>
> cgset_ttfont, 'dejavusans'
> cgplot, [0, 1], [0, 1], xtitle = 'R$\sub\\sun$', output = 'test.pdf'
>

Wow! This fixes an issue that has persisted 20 years in direct graphics. For those of us still stuck on then even more ancient PODG (plain-ole-direct-graphics), you can invoke the DejaVuSans font using the formatting code !10. E.g.:

xyouts,.5,.5,/normal,'M!D!10!Z(2299)!X!N',CHARSIZE=2,FONT=1

I see now that sunsymbol.pro has updated, using the more astronomically correct symbol at !Z(2609). Either works (pick your favorite).
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FFT on time series NDVI image
Next Topic: FG question: retrieve points within polygon

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

Current Time: Wed Oct 08 17:38:51 PDT 2025

Total time taken to generate the page: 0.00490 seconds