changing left scale in a graph with a scalar

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

victo3187
Posts: 1
Joined: Wed Nov 18, 2015 11:03 am

changing left scale in a graph with a scalar

Postby victo3187 » Wed Nov 18, 2015 11:20 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: changing left scale in a graph with a scalar

Postby EViews Gareth » Wed Nov 18, 2015 11:54 am

Code: Select all

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


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests