adaptive sampling for plotting of surfaces

34 views
Skip to first unread message

krastano...@gmail.com

unread,
Jul 20, 2012, 5:54:35 AM7/20/12
to sy...@googlegroups.com
Just a quick suggestion if someone feels like doing it.

There is a relatively new function in matplotlib that permits plotting
triangular meshes. This is exactly the feature that was blocking the
creation of adaptive sampling methods for the plotting module. If
someone is interested to do it, you can get some inspiration from
https://github.com/sympy/sympy/pull/1388 in which Bharath implemented
a nice adaptive sampler for line plots.

to plot the contour projection of the surface
http://matplotlib.sourceforge.net/api/axes_api.html?highlight=contourf#matplotlib.axes.Axes.tricontourf

3d projections do not work yet

At some point we should think about using Mayavi as a 3d backend. It
is light-years ahead of matplotlib and what I would consider "the
standard solution for 3D plots in python"

Bharath M R

unread,
Jul 20, 2012, 1:46:01 PM7/20/12
to sy...@googlegroups.com
Nice!! I will have a try once I am done with gsoc.

Yeah we should move to mayavi for 3d plots. 3d plots 
look way nice in mayavi.

Brian Granger

unread,
Jul 20, 2012, 2:32:13 PM7/20/12
to sy...@googlegroups.com
But we should still offer matplotlib based 3D plotting

> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to sympy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
>



--
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgra...@calpoly.edu and elli...@gmail.com
Reply all
Reply to author
Forward
0 new messages