Page 1 of 1

color setting Eviews 11

Posted: Wed May 08, 2019 11:04 am
by amrsherif
Hi,

I upgraded to EViews 11 today, and am having trouble changing colors in graphs. For example:

graph chart1.line series1 series2
chart1.textdefault font("Ariel",8,-b,-i,-u) textcolor(0,0,0) fillcolor(255,255,255) framecolor(255,255,255) existing

i get the following error: illegal color setting 255 in .....

It works if i change these to black/white. But adjusting other colors will be very difficult.

Am i doing anything wrong?

Thanks

Re: color setting Eviews 11

Posted: Wed May 08, 2019 11:42 am
by EViews Jason
The docs need to be updated but when specifying RGB colors, you need to include '@RGB()'.

Changing your line to:

Code: Select all

chart1.textdefault font("Arial",8,-b,-i,-u) textcolor(@rgb(0,0,0)) fillcolor(@rgb(255,255,255)) framecolor(@rgb(255,255,255))

should fix it.

Note: 'Arial' was misspelled in your example.

Re: color setting Eviews 11

Posted: Wed May 08, 2019 12:17 pm
by amrsherif
That works. Thanks for this (and for spotting the typo)