Page 1 of 1

setelem in scatter diagrams

Posted: Wed May 02, 2018 2:50 am
by zezza
As a follow up to the discussion here
http://forums.eviews.com/viewtopic.php? ... it=scatter

I would suggest to improve the treatment of SETELEM when using a scatter diagram. In the current Eviews version,

Code: Select all

mychart.SETELEM(1) symbol(FILLEDCIRCLE) linecolor(red)
will, as expected, draw the first Y series with a red circle. But the instruction

Code: Select all

mychart.SETELEM(1) legend(This is my first Y series)
will attach the legend to the variable on the X axis, so that to provide a legend to the first (second, third, etc.) Y series I have to call a separate SETELEM instruction. With two Y series what I need is now

Code: Select all

mychart.SETELEM(1) symbol(FILLEDCIRCLE) linecolor(red) mychart.SETELEM(2) symbol(FILLEDCIRCLE) linecolor(black) mychart.SETELEM(1) legend(This is my X variable) mychart.SETELEM(2) legend(This is my first Y series) mychart.SETELEM(3) legend(This is my second Y series)
which is somewhat counter-intuitive