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 
Return to the default flat view Create a new topic Submit Reply
Re: Changing font on iPlot legend [message #70032] Mon, 08 March 2010 15:35 Go to previous message
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Sat Oct 11 07:28:24 PDT 2025

Total time taken to generate the page: 0.95746 seconds