RE: Draw Lines

For questions regarding programming in the EViews programming language.

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

eviewsuser10
Posts: 16
Joined: Thu Oct 15, 2020 3:27 am

RE: Draw Lines

Postby eviewsuser10 » Mon Oct 26, 2020 9:00 am

Hello!
I am trying to draw a horizontal line at the value 5.25 and 7 as measure on the left axis as follows: graph1.draw(line, left, rgb(0,0,127)) 5.25 and graph1.draw(line, left, rgb(0,0,127)) 7.

However, I need to draw a horizontal line at the value 5.25 for the particular period 2000-2012 (and there should be no line at 5.25 after 2012) and 7 for the period 2013-2020 (and there should be no line at 7 for the 2000-2012 period). How I can draw separate horizontal lines for different periods.

I appreciate any help. Thanks.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13307
Joined: Tue Sep 16, 2008 5:38 pm

Re: RE: Draw Lines

Postby EViews Gareth » Mon Oct 26, 2020 9:50 am

You cannot.

Although, of course you could just create a series equal to 5.25 on the periods you want, NA everywhere else, and then add that series to your graph.
Follow us on Twitter @IHSEViews

eviewsuser10
Posts: 16
Joined: Thu Oct 15, 2020 3:27 am

Re: RE: Draw Lines

Postby eviewsuser10 » Mon Oct 26, 2020 10:12 am

EViews Gareth wrote:You cannot.

Although, of course you could just create a series equal to 5.25 on the periods you want, NA everywhere else, and then add that series to your graph.


Thank you for your response. I do not quite understand what "NA everywhere else, and then add that series to your graph" means. I attached the exemplary graph to this post. Would you please answer my questions in the file? How can I delete the line at 5 for the 2016-2020?
How can I delete the line at 7 for the 2009-2015?
Thank you.

Dae-Young
Attachments
Draw Lines.docx
(18.05 KiB) Downloaded 238 times


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 32 guests