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 #89807 is a reply to message #89806] Thu, 04 December 2014 05:59 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
On Thursday, December 4, 2014 2:54:00 PM UTC+1, Mats Löfdahl wrote:
> Den torsdagen den 4:e december 2014 kl. 14:02:08 UTC+1 skrev David Fanning:
>> Mats Löfdahl writes:
>>
>>>
>>> When I use the \sun symbol in cgplot titles with output to a pdf file, it comes out with the dot not centered in the ring. Is there something I can do about that? I usually use it as a subscript but just the symbol by itself also has this problem.
>>>
>>> Here is an example:
>>>
>>> IDL> cgplot, [0, 1], [0, 1], xtitle = '$\sun$', output = 'test.pdf'
>>>
>>> This is my output:
>>>
>>> http://www.isf.astro.su.se/~mats/test.pdf
>>>
>>> Is there something I can do about that? I currently don't set the ps_font to anything, would this maybe work better with a font other than the default?
>>
>> Try this:
>>
>> IDL> cgset_ttfont, 'dejavusans'
>> IDL> cgplot, [0, 1], [0, 1], xtitle = '$\sun$', output = 'test.pdf'
>
> Thanks Dave.
>
> 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
>
> /Mats

plot(/TEST,xtitle = 'R$_{\Sun}$')
[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: Fri Oct 10 17:00:51 PDT 2025

Total time taken to generate the page: 0.96216 seconds