<p dir="ltr">Thank you for your reply.</p>
<p dir="ltr">Is it possible to get it before the plot starts? We're trying to reproduce the plot in real time.</p>
<p dir="ltr">For example, if I change a plot using TKSCALE in Xcos, I would just like to get the coordinates in real time.</p>
<p dir="ltr">Thanks,</p>
<p dir="ltr">Adhitya</p>
<div class="gmail_quote">On 29-Jun-2016 7:31 pm, "Samuel Gougeon" <<a href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 29/06/2016 15:48, adhitya a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Consider the following example:<br>
<br>
x=[0:0.5:2*%pi]';<br>
plot(sin(x))<br>
<br>
The above plots the sine graph for each value in x with a corresponding<br>
value of y.<br>
<br>
My question is: Is it possible to get the main data points of the graph,<br>
before or just after it has been plotted?<br>
<br>
In other words, I would like to get the coordinates of each point that has<br>
to be plotted.<br>
<br>
We have struggling with this for some time now. I kindly request someone on<br>
this forum to reply to this thread.<br>
<br>
</blockquote>
The default plotted x are: x = 1:nb_points<br>
Just after plotting a single curve, you can get both its x and y with:<br>
c = gce();<br>
xy = c.children.data<br>
// xy = gce().children.data   // with Scilab 6<br>
<br>
<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@lists.scilab.org" target="_blank">dev@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/dev" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br>
</blockquote></div>