Page 1 of 1

graph.textdefault-bug?

Posted: Fri Nov 19, 2010 3:42 am
by dagfinnrime
Hi,
I want to have the font-size of text-objects in a graph different from the defaults set by Options | Graphics default.

I thought graph.textdefault should take care of it, but it doesn't

Code: Select all

testgraph.textdefault font(30) existing
This changes all text-object in the graph to the default values set by Options | Graphics default. However, documentation says:
Additionally, the "existing" keyword specifies that existing text objects in the graph will be updated with the current text settings.
An alternative interpretation of documentation could call for.

Code: Select all

testgraph.textdefault font(30) testgraph.addtext(t) "TestTest"
This too delivers the text-object in size set by Options | Graphics default.

Of course, I could set the font-size together with the addtext-command, but my problem is that I already have the text object and want to change font size afterwards.

Thanks,
Dagfinn

Re: graph.textdefault-bug?

Posted: Fri Nov 19, 2010 12:04 pm
by EViews Pamela
The name of the command is a little misleading. Default refers to the local graph default, not the global default. Each graph can override the global defaults, and new text objects added to that graph will use these local settings.

Code: Select all

graph1.textdefault font(30) existing
will set all text in graph1 to size 30 - both existing text and any created in the future.

Re: graph.textdefault-bug?

Posted: Fri Nov 26, 2010 4:04 am
by dagfinnrime
Hi,

it works like you describe if it's only one "graph" in the object, but if it's a merge of several graph-objects it doesn't.

If it changes the text it simply restores the global default.

Dagfinn

Re: graph.textdefault-bug?

Posted: Fri Dec 10, 2010 2:29 pm
by EViews Pamela
Yes, this was a bug. It's been fixed and should appear in the next patch.