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

Home » Public Forums » archive » 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
Changing font on iPlot legend [message #70036] Mon, 08 March 2010 13:30
Cliff is currently offline  Cliff
Messages: 11
Registered: April 2006
Junior Member
So, I've created a nice looking plot using iPlot with a legend for
each line (using the /INSERT_LEGEND keyword).

Now I would like to change the font name to "Symbol" so that a W is
rendered like a capital Omega (ideally I would like to put an
equation in but that's a different story). I can get the legend item
identifiers easily enough:-

idTool=IGETCURRENT(TOOL=oTool)
ids=oTool->FindIdentifiers("*plot legend item*")

but have tried both code like

void = oTool->DoSetProperty(ids[i], 'FONT_NAME', 'SYMBOL')

and

o=oTool->GetByIdentifier(ids[i])
o->SetProperty, FONT_NAME='Symbol'

all without success. I assume that since it can be changed on the
legend item property sheet it should be possible programmatically.

ITT: Why oh why is everything with iTools so cryptic and complicated?
I used to think of myself as a bit of an expert but now feel like an
idiot!

Can anyone help?

Regards,
Cliff
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL calculating elements in arrays plus there offsets
Next Topic: Re: Changing font on iPlot legend

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

Current Time: Wed Oct 08 15:07:14 PDT 2025

Total time taken to generate the page: 0.00565 seconds