[Scilab-Dev] Data Points of Plot

Adhitya Kamakshidasan adhitya07 at gmail.com
Wed Jun 29 16:05:42 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" <sgougeon at free.fr> 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
> dev at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160629/7eda48ad/attachment.htm>


More information about the dev mailing list