What is the matplotlib equivalent of Matlab's slice()
function for 4D plots. Please don't suggest scatter
, it doesn't seem to work with meshgrid(x,y,z)
.
Asked
Active
Viewed 1,193 times
2

M.T
- 4,917
- 4
- 33
- 52

Nishant Maxwell
- 21
- 2
-
matplotlib does not have such a function. Of course you can calculate the slice through the meshgrid with numpy and plot it on a [plot_surface](http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html#surface-plots). – ImportanceOfBeingErnest Feb 04 '17 at 18:07
-
one way of looking at values of a function in "slices" of a 3D grid is the [Axes3D.quiver](http://matplotlib.org/mpl_toolkits/mplot3d/tutorial.html?highlight=quiver#mpl_toolkits.mplot3d.Axes3D.quiver%20'Axes3D.quiver) which should actually work now in matplotlib 2.0 released last week – f5r5e5d Feb 04 '17 at 18:35
-
Here is an answer to a similar question: http://stackoverflow.com/a/41914314/4285097 – xecafe Feb 06 '17 at 10:46