How to customize the obs axis in graph?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

banhbengconuong
Posts: 15
Joined: Mon Apr 25, 2011 8:31 pm

How to customize the obs axis in graph?

Postby banhbengconuong » Thu Jan 22, 2015 3:44 am

Hi everyone,

I'm drawing a kind of impulse response graph. There is an option to define the interval of the horizon (see the attached picture). Is there any way to make a code for that too?

Thank you a lots!
Attachments
Capture.JPG
observations to label
Capture.JPG (74.77 KiB) Viewed 2986 times

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

Re: How to customize the obs axis in graph?

Postby EViews Jason » Thu Jan 22, 2015 10:26 am

See the documentation for the datelabel proc in graphs. More specifically use the 'interval' option.

For the equivalant settings in your pic use:

Code: Select all

graph1.datelabel interval(obs, 1,1)

banhbengconuong
Posts: 15
Joined: Mon Apr 25, 2011 8:31 pm

Re: How to customize the obs axis in graph?

Postby banhbengconuong » Thu Jan 22, 2015 8:14 pm

It works well now, thank you very much!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 26 guests