I am trying to extract from a figure or axes the data that it currently displays.
I had hoped that something like
from pylab import *
plot([1,2,4], [[1,3], [3,1], [1, 2]])
data = getp(gca(), 'data')
xdata = getp(gca(), 'xdata')
ydata = getp(gca(), 'ydata')
would do the trick, resulting in
xdata = [1,2,4]
ydata = [[1,3], [3,1], [1, 2]]
as suggested by the brief...
2008-05-12 18:57:03 UTC in matplotlib