Add vertical line in histogram

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

Zero
Posts: 17
Joined: Wed Apr 10, 2013 11:21 am

Add vertical line in histogram

Postby Zero » Sat Jan 02, 2016 2:17 pm

Hello Eviews-Support Team,

I make am Monte-Carlo-Simulation with 10.000 observation and my workfile has about 78 mb.
Therefore I can only attach the program-code.
In the histogram, I can´t add a vertical line, with the dist option it works like it should.
Adding a horizontal line to a histogram works too.
My program-code is attached.
Thanks for your help.

P.S. I use Eviews 8.1 with the newest patch.
Attachments
growth_mc_2_graph.prg
(3.87 KiB) Downloaded 342 times

Zero
Posts: 17
Joined: Wed Apr 10, 2013 11:21 am

Re: Add vertical line in histogram

Postby Zero » Mon Jan 04, 2016 4:36 am

Here is one page with a histogram and a distplot-graph. But to draw the vertical line only works in the distplot and not in the histgram.
Attachments
graph_hist_dist_plot.WF1
(1.27 MiB) Downloaded 290 times

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Add vertical line in histogram

Postby EViews Jason » Mon Jan 04, 2016 9:43 am

In the histogram case, the position must be specified by observation number and not value.

The below line will add a vertical line at the 10th observation:

Code: Select all

GRA_GDP1960_HAT_hist.draw(line, bot) 10

Zero
Posts: 17
Joined: Wed Apr 10, 2013 11:21 am

Re: Add vertical line in histogram

Postby Zero » Mon Jan 04, 2016 1:08 pm

First, I want to thank you for your request, Jason.
Is there no opportunity to set it by value, because I want to illustrate the case of a biased estimation
and the line should be the value from the data generating process.

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Add vertical line in histogram

Postby EViews Jason » Tue Jan 05, 2016 11:18 am

Unfortunately not.

EViews Glenn
EViews Developer
Posts: 2671
Joined: Wed Oct 15, 2008 9:17 am

Re: Add vertical line in histogram

Postby EViews Glenn » Wed Jan 06, 2016 1:26 pm

Actually, for the histogram, Jason's code will draw by value

Code: Select all

graph01.draw(line, bottom) 824

will draw the vertical line at a value of 824.

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Add vertical line in histogram

Postby EViews Jason » Wed Jan 06, 2016 2:31 pm

Both Glenn and I are giving you conflicting answers. We are actually both right.

You cannot specify by value if from your series, you created the histogram by selecting view->descriptive stats & tests->histogram and stats.

You can if you create your histogram by selecting View->Graph, then selecting Distribution from the Specific: box and additionally selecting Histogram from the Distribution: box in the Details box.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 15 guests