> Your data are embedded in a Line2d object which is itself a child of an
> Axes, itself child of the figure. Try:
> Fig = F.matplotlib()
> ax = Fig.get_axes()[0] # to get the first (and maybe only) subplot
> line = ax.get_axes()[0]
> xdata = line.get_xdata()
> ydata = line.get_ydata()

There is something wrong ...

sage: var('x,y') 

(x, y)
sage: F=implicit_plot(x**2+y**2==1,(x,-5,5),(y,-5,5))
sage: Fig = F.matplotlib()
sage: ax = Fig.get_axes()[0] <-- I checked  : it is the only element :)
sage: line = ax.get_axes()[0]
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call 
last) 
 

TypeError: 'AxesSubplot' object does not support indexing 
 

sage:line=ax.get_axes() 

sage:type(line) 

<class 'matplotlib.axes.AxesSubplot'>

However, using some "grep get_ydata" from that point, I suceed to track 
my information.
It was in the segments argument of matplotlib.collections.LineCollection

Now I'm tracking back the information ... It is in
mcontour.QuadContourSet(self, *args, **kwargs).allsegs
in the method matplotlib.axes.Axes.contour()

I'm almost done.

Thanks for help !

Have a nice afternoon
Laurent

PS :
I'll post the final answer here :
http://ask.sagemath.org/question/359/get_minmax_data-on-implicit_plot

PPS :
Argh !! Someone already did !


------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to