graph.textdefault-bug?

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

graph.textdefault-bug?

Postby dagfinnrime » Fri Nov 19, 2010 3:42 am

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

EViews Pamela
EViews Developer
Posts: 54
Joined: Wed Sep 17, 2008 2:52 pm

Re: graph.textdefault-bug?

Postby EViews Pamela » Fri Nov 19, 2010 12:04 pm

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.

dagfinnrime
Posts: 54
Joined: Sat Oct 11, 2008 9:37 am
Location: Oslo
Contact:

Re: graph.textdefault-bug?

Postby dagfinnrime » Fri Nov 26, 2010 4:04 am

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

EViews Pamela
EViews Developer
Posts: 54
Joined: Wed Sep 17, 2008 2:52 pm

Re: graph.textdefault-bug?

Postby EViews Pamela » Fri Dec 10, 2010 2:29 pm

Yes, this was a bug. It's been fixed and should appear in the next patch.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests