Re: [Matplotlib-users] Getting the set of point actually plotted (from Sage)

2011-02-06 Thread Laurent
> 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 so

Re: [Matplotlib-users] Getting the set of point actually plotted (from Sage)

2011-02-06 Thread Fabrice Silva
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() > > sage: F.matplotlib().get_children() > [, > ] > > I rea

[Matplotlib-users] Getting the set of point actually plotted (from Sage)

2011-02-06 Thread Laurent
Hello all ! I'm sorry if my question is not clear, but I do not know ho to produce a simple example. I'm plotting the graph of an implicit given function (say x^2+y^2=3) using Sage. What I know it that 1. when I ask sage to plot implicit_plot( f==3,(x,-5,5),(y,-5,5) ), Sage computes f-3