Le dimanche 06 février 2011 à 14:29 +0100, Laurent a écrit : > If it can help, I have the following in a Sage terminal : > > sage: var('x,y') > sage: F=implicit_plot(x**2+y**2==2,(x,-5,5),(y,-5,5),plot_points=100) > sage: F.matplotlib() > <matplotlib.figure.Figure object at 0xbfb60ac> > sage: F.matplotlib().get_children() > [<matplotlib.patches.Rectangle object at 0xc144e4c>, > <matplotlib.axes.AxesSubplot object at 0xc14472c>] > > I really do not understand where is the data ??? In the Rectangle ? In > the Axes ?
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() -- Fabrice Silva ------------------------------------------------------------------------------ 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