Em 13-02-2013 01:09, Aaron Meurer escreveu:
On Tue, Feb 12, 2013 at 7:57 PM, Roberto Colistete Jr.
<[email protected]> wrote:
I am experimenting the new plotting module (using MatPlotLib) of SymPy
0.7.2.
Besides being documented in :
http://docs.sympy.org/0.7.2/modules/plotting.html
and examples "plot_*.ipynb" in :
https://github.com/sympy/sympy/tree/master/examples/beginner
the following features don't work with me (using Ubuntu 12.04 64 bits, SymPy
0.7.2 git source code from 12/02/2013,
MatPlotLib 1.1.1~rc1, NumPy 1.6.1) :
- aspect_ratio in plot and plot_parametric;
- nb_of_points_x, nb_of_points_y in plot3d.
Does anyone have the same problems ?
These are probably bugs.
About "nb_of_points_x/y" in plot3d, it works, but not in the way
indicated by :
https://github.com/sympy/sympy/blob/master/examples/beginner/plot_intro.ipynb
So, instead of, e.g. :
In[3]: plot3d(x*y, nb_of_points_x=20, nb_of_points_y=20)
which doesn't work, we use :
In[3]: p = plot3d(x*y, show='False'); p[0].nb_of_points_x=20;
p[0].nb_of_points_y=20; p.show()
It seems there is no bug about nb_of_points_x/y, but the
documentation should be fixed and improved
Last but not least, the required minimum version of MatPlotLib should be
listed. Is v1.1 ?
I've tested v1.0 and some features don't work :
- adaptive sampling of plot_parametric for some functions;
- plot3d_parametric_line;
- surface_color option of plot3d & plot3d_parametric_surface.
I know that when it was being developed, the git version of matplotlib
was required. Probably they have released since then. If it doesn't
work in 1.0 but does in 1.1, then I guess either 1.1 or 1.0.1 is the
minimum version. I agree we should document it, or add a hard version
check when importing matplotlib (using import_module).
Aaron Meurer
Complementing my yesterday comment, as far as I've tested :
MatPlotLib 1.2.0 : recommended;
MatPlotLib 1.1.1 : only "surface_color" option for 3D plots don't work;
MatPlotLib 1.0.0 : "plot3d_parametric_line" command and "surface_color"
option for 3D plots don't work.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.