Date axis grid lines

For questions regarding programming in the EViews programming language.

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

amrsherif
Posts: 36
Joined: Mon Jul 23, 2018 4:34 pm

Date axis grid lines

Postby amrsherif » Mon May 13, 2019 5:29 am

Hi,

How do i turn off date the date axis grid lines in a program? I'm able to go into the chart options --> axis & scaling --> grid lines --> Obs & Date axis grid lines and i can choose none. This works, but chart_1.axis(b) -grid seems to have no effect

thanks

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

Re: Date axis grid lines

Postby EViews Jason » Mon May 13, 2019 8:11 am

The 'axis' proc refers to axis containing data. I am assuming your bottom axis is the time axis in which case you need to use the 'options' proc.

If this is true, try

Code: Select all

chart_1.options gridnone


but turning off all grids will also turn on the frame. So you will also have to specify the frame border setting. For example, use

Code: Select all

chart_1.options gridnone frameaxes(none)

amrsherif
Posts: 36
Joined: Mon Jul 23, 2018 4:34 pm

Re: Date axis grid lines

Postby amrsherif » Mon May 13, 2019 8:47 am

Thank you


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 3 guests