Hi,
I often use the model object for scenario analysis and one chart that I usually create displays the shock variable.
For example, the chart below shows house prices as 10% deviation from baseline. However, notice that the y-axis is by default using a very high level of precision / number of digits. I was wondering, first, if this y-axis behavior is desirable (for other cases), and, second, if not, could the settings be changed such that this level of precision is turned down?
Technically, I think the following is going on. In the chart, all values are equal to the integer value of 10, but there's some difference shown in the chart due to the computer representation of numbers.
Of course, the simple solution is for me to change the y-axis. It would just be nice if the default plotting worked as one would expect.
Not a big issue.
Cheers,
Graeme
Chart number of digits on y-axis
Moderators: EViews Gareth, EViews Moderator
-
- Posts: 39
- Joined: Fri Sep 18, 2015 11:41 am
- Location: Dublin, Ireland
- Contact:
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13309
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Chart number of digits on y-axis
Not sure I understand what you are asking. Since the bars all have different heights, it would seem your data are all extremely close in value, but not identical. By forcing the Y-axis values to all be exact, the bars would all become the same height.
Follow us on Twitter @IHSEViews
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Chart number of digits on y-axis
If you are worried about computer precision, which is a reasonable thing to worry about, perhaps apply @round() before graphing.
-
- Posts: 39
- Joined: Fri Sep 18, 2015 11:41 am
- Location: Dublin, Ireland
- Contact:
Re: Chart number of digits on y-axis
Hi Gareth, startz,
Thanks for the replies.
I think what I wanted was a way to set the default number of decimal places on the y-axis when creating charts.
Actually, I can do this by going to Options then Graphics Defaults then Axes & Scaling then under Data axis set the number of decimal places to, say, 1 or 2 rather than use the Auto option. The screenshot below demonstrates this.
The @round function is also an option - and depending on how I've written the program may be the better option. Either way, couple of options!
Btw... I don't think I'd ever really need more than 2 decimal places. An economist claiming more precision than two decimals would definitely be codding around!
Thanks for the replies.
I think what I wanted was a way to set the default number of decimal places on the y-axis when creating charts.
Actually, I can do this by going to Options then Graphics Defaults then Axes & Scaling then under Data axis set the number of decimal places to, say, 1 or 2 rather than use the Auto option. The screenshot below demonstrates this.
The @round function is also an option - and depending on how I've written the program may be the better option. Either way, couple of options!
Btw... I don't think I'd ever really need more than 2 decimal places. An economist claiming more precision than two decimals would definitely be codding around!
Return to “Suggestions and Requests”
Who is online
Users browsing this forum: No registered users and 4 guests