Changing font on iPlot legend [message #70036] |
Mon, 08 March 2010 13:30 |
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
|
|
|