graph options gridcolor in programme code yields error

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

graph options gridcolor in programme code yields error

Postby mamo » Wed Dec 11, 2019 3:39 am

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"

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: graph options gridcolor in programme code yields error

Postby EViews Jason » Wed Dec 11, 2019 9:46 am

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.

mamo
Posts: 205
Joined: Wed Nov 07, 2012 9:11 am

Re: graph options gridcolor in programme code yields error

Postby mamo » Thu Dec 12, 2019 6:34 am

Many thanks for the quick reply, this helps. I will use the @rgb function then.
Best, mamo


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests