formating graph lines

For questions regarding programming in the EViews programming language.

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

idomen
Posts: 10
Joined: Tue Apr 23, 2019 6:16 am

formating graph lines

Postby idomen » Thu Oct 10, 2019 10:37 pm

Dear forum participants

I give a try to run the following EVIEWS code

‘plot 68% CI
smpl @last-!imp_periods+1 @last
graph imp_fr lb_f f1_impulse_f ub_f
imp_fr.setelem(1) linepattern(DASH9) linewidth(1.5) linecolor(@rgb(146,194,218))
imp_fr.options linepat
imp_fr.setelem(2) linepattern(solid) linewidth(1.5) linecolor(@rgb(0,0,255))
imp_fr.setelem(3) linepattern(DASH9) linewidth(1.5) linecolor(@rgb(146,194,218))
imp_fr.options linepat
imp_fr.addtext(t) IRC

Where I am plotting 3 different lines, and I want to format them differently, but when I run it, the following error message comes up.
IMP_FR already exists in "GRAPH IMP_FR LB_F F1_IMPULSE_F UB_F"

Eviews does not understand that I instruct to plot the graph and secondly to modify it. Hence the code from from the second to 3rd line. What to do? What is the mistake ?

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

Re: formating graph lines

Postby EViews Gareth » Fri Oct 11, 2019 7:38 am

Delete the existing graph before creating the new one.
Follow us on Twitter @IHSEViews

idomen
Posts: 10
Joined: Tue Apr 23, 2019 6:16 am

Re: formating graph lines

Postby idomen » Fri Oct 11, 2019 7:35 pm

EViews Gareth wrote:Delete the existing graph before creating the new one.

I am not trying to create a new one, I am quoting it in order to modify its elements

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

Re: formating graph lines

Postby EViews Gareth » Fri Oct 11, 2019 8:19 pm

Code: Select all

graph imp_fr lb_f f1_impulse_f ub_f

That line creates a graph.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 24 guests