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" <[email protected]> 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
> [email protected]
> http://lists.scilab.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to