Re: [Matplotlib-users] extracting displayed data from axes

2008-05-14 Thread Matthias Michler
Hello Markus, On Saturday 10 May 2008 22:01:22 Markus Kuhn wrote: > How can I extract from a figure or axes the data that it currently > displays? > > I had hoped that something like > > from pylab import * > plot([1,3,2]) > data = getp(gca(), 'data') > xdata = getp(gca(), 'xdata') > ydata = getp(

[Matplotlib-users] extracting displayed data from axes

2008-05-10 Thread Markus Kuhn
How can I extract from a figure or axes the data that it currently displays? I had hoped that something like from pylab import * plot([1,3,2]) data = getp(gca(), 'data') xdata = getp(gca(), 'xdata') ydata = getp(gca(), 'ydata') would do the trick, as suggested by the brief mention of these prope