[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: |
JasonNicholson |
Subject: |
Re: Octave - is there a possibilty to access the data of a plotted curve |
Date: |
Thu, 5 Sep 2013 14:02:06 -0700 (PDT) |
Werner,
If you want to get the line objects that are on the current axes, you can
use the following:
plot (rand (1, 10));
childrenOfAxes = get(gca,'children'); % This is the handle to all of the
line objects on the current axes
gco = childrenOfAxes(end); % The last thing plotted is the current line
object
get (gco, 'xdata');
get (gco, 'ydata');
Sincerely,
Jason Nicholson
--
View this message in context:
http://octave.1599824.n4.nabble.com/Octave-is-there-a-possibilty-to-access-the-data-of-a-plotted-curve-tp4657069p4657074.html
Sent from the Octave - General mailing list archive at Nabble.com.