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

Home » Public Forums » archive » Re: Changing font on iPlot legend
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: Changing font on iPlot legend [message #70032] Mon, 08 March 2010 15:35
Cliff is currently offline  Cliff
Messages: 11
Registered: April 2006
Junior Member
On 8 Mar, 23:24, pp <pp.pente...@gmail.com> wrote:
> On Mar 8, 8:01 pm, Cliff <c.chees...@physics.org> wrote:
>
>> On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
>
>>> Have you used
>
>>> otool->commitactions
>
>>> after you set the properties?
>
>> Yes I have - sorry I didn't mention it.
>
> It works for me, but I noticed that capitalization matters: The font
> name must have only the first letter capitalized. Otherwise, it seems
> that the name is not recognized, and it is reverted to the default
> Helvetica:
>
> IDL> o->setproperty,font_name='SYMBOL'
> IDL> o->getproperty,font_name=fn & print,fn
> Helvetica
> IDL> o->setproperty,font_name='Symbol'
> IDL> o->getproperty,font_name=fn & print,fn
> Symbol
> IDL> o->setproperty,font_name='symbol'
> IDL> o->getproperty,font_name=fn & print,fn
> Helvetica
>
> You can also try putting a !9 inside your string, to change the font
> to Symbol. It also works for me.

Both methods work - Incidently it also worked using
void = oTool->DoSetProperty(ids[i], 'FONT_NAME', 'Symbol')
so that I didn't have to get the object itself.

Thank you very much.

Cliff
Re: Changing font on iPlot legend [message #70033 is a reply to message #70032] Mon, 08 March 2010 15:24 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 8, 8:01 pm, Cliff <c.chees...@physics.org> wrote:
> On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
>
>> Have you used
>
>> otool->commitactions
>
>> after you set the properties?
>
> Yes I have - sorry I didn't mention it.

It works for me, but I noticed that capitalization matters: The font
name must have only the first letter capitalized. Otherwise, it seems
that the name is not recognized, and it is reverted to the default
Helvetica:

IDL> o->setproperty,font_name='SYMBOL'
IDL> o->getproperty,font_name=fn & print,fn
Helvetica
IDL> o->setproperty,font_name='Symbol'
IDL> o->getproperty,font_name=fn & print,fn
Symbol
IDL> o->setproperty,font_name='symbol'
IDL> o->getproperty,font_name=fn & print,fn
Helvetica

You can also try putting a !9 inside your string, to change the font
to Symbol. It also works for me.
Re: Changing font on iPlot legend [message #70034 is a reply to message #70033] Mon, 08 March 2010 15:01 Go to previous message
Cliff is currently offline  Cliff
Messages: 11
Registered: April 2006
Junior Member
On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
> Have you used
>
> otool->commitactions
>
> after you set the properties?

Yes I have - sorry I didn't mention it.

Regards,
cliff
Re: Changing font on iPlot legend [message #70035 is a reply to message #70034] Mon, 08 March 2010 14:22 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
Have you used

otool->commitactions

after you set the properties?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Changing font on iPlot legend
Next Topic: OT: Summer of Code 2010 is on!

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

Current Time: Wed Oct 08 15:13:04 PDT 2025

Total time taken to generate the page: 0.00747 seconds