Re: star symbol in labels?? [message #81461] |
Fri, 21 September 2012 01:35  |
lecacheux.alain
Messages: 325 Registered: January 2008
|
Senior Member |
|
|
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.
|
|
|
|
|
|
|
Re: star symbol in labels?? [message #90377 is a reply to message #81461] |
Thu, 26 February 2015 21:00   |
toby.brown03
Messages: 2 Registered: February 2015
|
Junior Member |
|
|
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
|
|
|
Re: star symbol in labels?? [message #90383 is a reply to message #90377] |
Fri, 27 February 2015 10:53   |
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
|
|
|
Re: star symbol in labels?? [message #90388 is a reply to message #90383] |
Fri, 27 February 2015 11:46   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Chris Torrence writes:
> 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)
It's pretty easy with Coyote Graphics, too, if you are using IDL 8.2 or
higher. First, make sure DejaVuSans is your true-type font. I usually do
this in my IDL start-up file.
cgSet_TTFont, 'Dejavusans'
Then, to make the plot:
cgPlot, x,y,TITLE='M!D!Z(22C6)!N', Font=1, Output='test.png'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: star symbol in labels?? [message #90409 is a reply to message #90388] |
Sun, 01 March 2015 15:22  |
toby.brown03
Messages: 2 Registered: February 2015
|
Junior Member |
|
|
On Saturday, February 28, 2015 at 6:46:27 AM UTC+11, David Fanning wrote:
> Chris Torrence writes:
>
>> 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)
>
> It's pretty easy with Coyote Graphics, too, if you are using IDL 8.2 or
> higher. First, make sure DejaVuSans is your true-type font. I usually do
> this in my IDL start-up file.
>
> cgSet_TTFont, 'Dejavusans'
>
> Then, to make the plot:
>
> cgPlot, x,y,TITLE='M!D!Z(22C6)!N', Font=1, Output='test.png'
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Excellent, thank you guys.
Toby
|
|
|