Page 1 of 1

changing left scale in a graph with a scalar

Posted: Wed Nov 18, 2015 11:20 am
by victo3187
I have calculated two scalar that will be actualized each time I run the program. What i need is to change the axis scale of a line graph in a way that the range lays between the scalar1 and the scalar2.
As far as I know if you want to chage the range to a fixed numer as 1 and 4 the code is
graphname.axis(l) range (1,4)
if I named scala1 the first scalar and scalar2 the second, how can I write a code where the minimun of the range is scalar1 and the max is scalar2. (This scalar will change each time i run the program, that´s why I can not put them by hand)

Kind Regards
Victoria

Re: changing left scale in a graph with a scalar

Posted: Wed Nov 18, 2015 11:54 am
by EViews Gareth

Code: Select all

!min = 1 !max = 5 graphname.axis(l) range(!min,!max)