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

Home » Public Forums » archive » Re: star symbol in labels??
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: star symbol in labels?? [message #90383 is a reply to message #90377] Fri, 27 February 2015 10:53 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, February 26, 2015 at 10:00:33 PM UTC-7, toby.b...@gmail.com wrote:
> On Friday, September 21, 2012 at 6:35:06 PM UTC+10, alx wrote:
>> Le vendredi 21 septembre 2012 03:56:06 UTC+2, bing999 a écrit :
>>> Thanks Mats for the clarification regarding textoidl. However, in the
>>>
>>> case of a star symbol, I don't know the IDL string, and nor does
>>>
>>> google... :)
>>>
>>> From David's post, I guess that's a well-known issue.
>>>
>>>
>>>
>>> Any other way to put a star symbol in a string?
>>>
>>> Thanks guys!
>>>
>>> Bing
>>
>> The 'dejavusans' font, introduced in IDL 8.2, includes the star symbol (unicode '22C6'x).
>> For instance:
>>
>> pl=plot(/TEST) & !null=text(0.5,0.5,'$\U(22C6)$',FONT_SIZE=30)
>>
>> alx.
>
> Hello, has there been any advancement on this issue?
>
> I would really like to have a subscript star on my labels (i.e M_{\star}) however I can't find a routine for the job.
>
> Any ideas?
>
> Toby

It's easy to do with new graphics:

x = findgen(100)
y = randomu(seed,100)
p = plot(x,y,TITLE='$M_{\U(22C6)}$', FONT_SIZE=30)

Cheers,
Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debuging
Next Topic: Is it possible to save the figure file in .PNG format directly in IDL?

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

Current Time: Wed Oct 08 19:32:52 PDT 2025

Total time taken to generate the page: 0.00371 seconds