Graph sample?

For questions regarding programming in the EViews programming language.

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

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Graph sample?

Postby paues » Wed Apr 17, 2013 7:34 am

Is there someway to get the sample for a graph? I tried

Code: Select all

@uiprompt(mygraph.@attr("smpl"))
without success.

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

Re: Graph sample?

Postby EViews Gareth » Wed Apr 17, 2013 8:48 am

Unfortunately not.

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Graph sample?

Postby paues » Wed Apr 17, 2013 9:10 am

Would it be possible to add support for it in an upcoming patch?

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

Re: Graph sample?

Postby EViews Gareth » Wed Apr 17, 2013 9:17 am

I'll look into it.

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

Re: Graph sample?

Postby EViews Gareth » Wed Apr 17, 2013 9:23 am

Having looked into it, it is unlikely to be added in a patch. Maybe for EV9 though!

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Graph sample?

Postby paues » Wed Apr 17, 2013 10:30 am

OK, looking forward to that. It kind of easy for the user to add when creating the graph:

Code: Select all

%smpl=@pagesmpl graph mygraph myseries mygraph.setattr("smpl") {%smpl}
I thought it would be easy to add backend. This would enable

Code: Select all

%grasmpl=mygraph.@attr("smpl")

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

Re: Graph sample?

Postby EViews Gareth » Wed Apr 17, 2013 10:34 am

object.setattr and object.@attr are global object attributes, and know nothing about specific object types. Those commands have no idea that you're working with a graph, or that a graph has a sample, etc...

If we do add it for EV9, it would be as a specific graph data member:
graph.@smpl


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests