Change Line Color

For questions regarding programming in the EViews programming language.

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

tobi_mueller
Posts: 9
Joined: Mon Sep 17, 2012 2:37 am

Change Line Color

Postby tobi_mueller » Mon Sep 24, 2012 4:47 am

Hi everyone,

Is there a possibility/code of changing the color of certain lines? My goal is to color the lines representing the 95% CI (series upper and lower) equally. How to adjust my code?

Code: Select all

[b]graph fitted_gdp_wholesample1.line(o=spartan) fitted_gdp1 gdp_growth upper lower [/b]
Thanks in advance

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

Re: Change Line Color

Postby EViews Gareth » Mon Sep 24, 2012 6:49 am

Look up graph.setelem in the object reference.

tobi_mueller
Posts: 9
Joined: Mon Sep 17, 2012 2:37 am

Re: Change Line Color

Postby tobi_mueller » Tue Sep 25, 2012 6:30 am

thx!!!!

the following code worked just fine for me:

Code: Select all

graph wholesampl.line(o=spartan) gdp_hat gdp_growth wholesample.setelem(1) lcolor(blue) 'colors gpd_hat blue'


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests