Page 1 of 1

Modifying graphs in a loop

Posted: Fri Apr 24, 2015 5:09 am
by ral
I am creating a set of graphs in a loop that iterates over a set of countries. I would like to change the line width in each of the graphs to make them more legible.

Below is a code fragment that works. I tried inserting caicomp_{%x}.setelem(1) lwidth(2) into the loop below to increase the width of the lines, but it did not work. What am I missing?

Thank you.

for %x {%countries}

' Do some calculations....

smpl %start_caicomp %end_caicomp
freeze(caicompfig_{%x}) caicomp_{%x}.line
copy {%x}_m\caicompfig_{%x} figures_m\caicompfig_{%x}
smpl @all

next

Re: Modifying graphs in a loop

Posted: Fri Apr 24, 2015 7:23 am
by EViews Gareth
You have to use .setelem on the graph object, not the series.