Page 1 of 1

Graph sample?

Posted: Wed Apr 17, 2013 7:34 am
by paues
Is there someway to get the sample for a graph? I tried

Code: Select all

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

Re: Graph sample?

Posted: Wed Apr 17, 2013 8:48 am
by EViews Gareth
Unfortunately not.

Re: Graph sample?

Posted: Wed Apr 17, 2013 9:10 am
by paues
Would it be possible to add support for it in an upcoming patch?

Re: Graph sample?

Posted: Wed Apr 17, 2013 9:17 am
by EViews Gareth
I'll look into it.

Re: Graph sample?

Posted: Wed Apr 17, 2013 9:23 am
by EViews Gareth
Having looked into it, it is unlikely to be added in a patch. Maybe for EV9 though!

Re: Graph sample?

Posted: Wed Apr 17, 2013 10:30 am
by paues
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")

Re: Graph sample?

Posted: Wed Apr 17, 2013 10:34 am
by EViews Gareth
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