programming a graph sample

For questions regarding programming in the EViews programming language.

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

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

programming a graph sample

Postby miorinnovo » Thu Jan 09, 2020 6:10 am

Is there a way to get the graph I programmed to show only the sample range I want?

I have this:

Code: Select all

'graph graph.line x1 x2


but it shows it with the full workfile sample.

thanks

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

Re: programming a graph sample

Postby EViews Gareth » Thu Jan 09, 2020 8:01 am

It shouldn't show the full sample:

Code: Select all

create u 100
series x1=nrnd
series x2=nrnd
smpl 80 100
graph graph.line x1 x2
show graph
Follow us on Twitter @IHSEViews

miorinnovo
Posts: 199
Joined: Sun Mar 01, 2015 5:01 pm

Re: programming a graph sample

Postby miorinnovo » Fri Jan 10, 2020 7:55 am

Perfect, thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 13 guests