r/Python • u/flutefreak7 • Oct 25 '16
Mayavi 3D visualiation package finally Python 3 + Jupyter integration
http://blog.enthought.com/general/mayavi-python-3d-data-visualization-and-plotting-library-adds-major-new-features-in-recent-release/#.WA9TXBlOnqA7
u/bkd9 Oct 25 '16 edited Oct 26 '16
I thought I would never see the day. Way to go Mayavi team, it must have been quite an effort to port to python 3!
3
u/n1ywb Oct 25 '16
mayavi is pretty cool. One time I was prototyping different motor control loops in Python and I used mayavi to interactively visualize the maps; it was a great tool and it really helped me choose the best control algorithm for the job (PI) and tune the coefficients just right. When I ported the algorithm to the microcontroller it "just worked".
4
u/NeedsMoreTests os._exit(0) -- (╯°□°)╯︵ ┻━┻ Oct 25 '16
I've never seen this before so I got confused for a moment when trying to see how this was related to Autodesk Maya and vim....
Anyway, looks like a cool project.
1
u/sneakypython Oct 26 '16
For 3D visualization, I used VTK and Paraview in the past, but I think I am going to use Mayavi 3D from now on. It seems much more straightforward.
1
u/flutefreak7 Nov 26 '16
I build tools in PyQt/PySide and Mayavi did a lot better job integrating into a GUI and was easier to get looking nice for my purposes. Once I moved to Python 3 I switched over to PyQtGraph since it implemented just enough of what I needed to get by and was very fast. Now that Mayavi is in Python 3 I'll have to re-evaluate. I keep hoping Vispy will be ready for primetime, but it keeps looking like it'll be another couple years before it's stable enough for someone like me to wield it easily.
3
u/oddly-blank Oct 26 '16
For all non Hindi speaking fellas out there, Mayavi means magical in Hindi.
1
u/denfromufa Oct 26 '16
There are also plotly, pythreejs, sage 3d plots, and vispy worth mentioning. But matplotlib with mplot3d was good enough for my 3d plots, especially since I do matplotlib + pandas mostly.
We need altair for 3d plots!
2
u/tossin Oct 25 '16
For 3D visualization, I use VTK and Paraview. As the blog says, Mayavi "provides a convenient Pythonic wrapper for the powerful VTK (Visualization Toolkit) library." What are the advantages of using Mayavi over the VTK library itself?