Page 1 of 1

formating graph lines

Posted: Thu Oct 10, 2019 10:37 pm
by idomen
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 ?

Re: formating graph lines

Posted: Fri Oct 11, 2019 7:38 am
by EViews Gareth
Delete the existing graph before creating the new one.

Re: formating graph lines

Posted: Fri Oct 11, 2019 7:35 pm
by idomen
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

Re: formating graph lines

Posted: Fri Oct 11, 2019 8:19 pm
by EViews Gareth

Code: Select all

graph imp_fr lb_f f1_impulse_f ub_f
That line creates a graph.