help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave - is there a possibilty to access the data of a plotted curve


From: Ben Abbott
Subject: Re: Octave - is there a possibilty to access the data of a plotted curve
Date: Thu, 05 Sep 2013 14:13:46 -0400

On Sep 5, 2013, at 1:21 PM, Werner Koenig wrote:

> Hello List,
> 
> in  matlab there is a possiblity to have a direct
> access to plotted curve. With the following code snippet
> you get a curve a handle and therefor you can query
> curve data  like XData, YData and so on.
> 
> h = gco;
> co=get(h); % search for active curve
> x = co.XData;
> y = co.YData;
> 
> I have searched in the internet for a similar approach
> to do it with octave, but I found no solution.
> Is there a way to do this job with octave and when what
> is the solution.
> 
> So long Werner

I don't think the gco() command is supported by Octave yet.  However the rest 
of it should work.

        h = plot (rand (1, 10));
        x = get (h, "xdata");
        y = get (h, "ydata");

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]