[Scilab-Dev] Data Points of Plot

adhitya adhitya07 at gmail.com
Wed Jun 29 16:05:23 CEST 2016


Thank you for your reply.

Is it possible to get it before the plot starts? We're trying to reproduce
the plot in real time.

For example, if I change a plot using TKSCALE in Xcos, I would just like to
get the coordinates in real time.

Thanks,

Adhitya
On 29-Jun-2016 7:31 pm, "Samuel GOUGEON [via Scilab / Xcos - Mailing Lists
Archives]" <ml-node+s994242n4034307h58 at n3.nabble.com> wrote:

> Le 29/06/2016 15:48, adhitya a écrit :
>
> > Hi,
> >
> > Consider the following example:
> >
> > x=[0:0.5:2*%pi]';
> > plot(sin(x))
> >
> > The above plots the sine graph for each value in x with a corresponding
> > value of y.
> >
> > My question is: Is it possible to get the main data points of the graph,
> > before or just after it has been plotted?
> >
> > In other words, I would like to get the coordinates of each point that
> has
> > to be plotted.
> >
> > We have struggling with this for some time now. I kindly request someone
> on
> > this forum to reply to this thread.
> >
> The default plotted x are: x = 1:nb_points
> Just after plotting a single curve, you can get both its x and y with:
> c = gce();
> xy = c.children.data
> // xy = gce().children.data   // with Scilab 6
>
>
> _______________________________________________
> dev mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4034307&i=0>
> http://lists.scilab.org/mailman/listinfo/dev
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://mailinglists.scilab.org/Data-Points-of-Plot-tp4034306p4034307.html
> To unsubscribe from Data Points of Plot, click here
> <http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4034306&code=YWRoaXR5YTA3QGdtYWlsLmNvbXw0MDM0MzA2fC0xNjE0MjYwNjg=>
> .
> NAML
> <http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://mailinglists.scilab.org/Data-Points-of-Plot-tp4034306p4034308.html
Sent from the Scilab developers - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160629/42de1650/attachment.htm>


More information about the dev mailing list