Page 1 of 1

graph options gridcolor in programme code yields error

Posted: Wed Dec 11, 2019 3:39 am
by mamo
Dear Eviews team
I use Eviews 11, 17 Sept 2019 Built, 64 bit
The example programme below yields an error for the gridlines option.
This used to work with Eveiws 10, and the programme line is exactly the one which produced by the command capture when adjusting the gridcolor manually. So, this seems to be a bug.

Best,
mamo

Code: Select all

wfcreate a 2000 2010 series x=nrnd freeze(gr) x.line show gr gr.options gridcolor(160,160,160) ' Error message: "illegal color setting 160"

Re: graph options gridcolor in programme code yields error

Posted: Wed Dec 11, 2019 9:46 am
by EViews Jason
We will get it fixed in the next patch. If you cannot wait till the patch is released use:

Code: Select all

gr.options gridcolor(@rgb(160,160,160))
NOTE: The @rgb() function/format is meant to supercede to old specification of 3 rgb colors. The old format will continue to be supported for legacy options such 'gridcolor' but we cannot guarantee it will be for any future options.

Re: graph options gridcolor in programme code yields error

Posted: Thu Dec 12, 2019 6:34 am
by mamo
Many thanks for the quick reply, this helps. I will use the @rgb function then.
Best, mamo