mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe
- Axes3D.plot_wireframe(X, Y, Z, *, axlim_clip=False, **kwargs)[source]
-
Plot a 3D wireframe.
Note
The rcount and ccount kwargs, which both default to 50, determine the maximum number of samples used in each direction. If the input data is larger, it will be downsampled (by slicing) to these numbers of points.
- Parameters:
-
- X, Y, Z2D arrays
-
Data values.
- axlim_clipbool, default: False
-
Whether to hide lines and patches with vertices outside the axes view limits.
Added in version 3.10.
- rcount, ccountint
-
Maximum number of samples used in each direction. If the input data is larger, it will be downsampled (by slicing) to these numbers of points. Setting a count to zero causes the data to be not sampled in the corresponding direction, producing a 3D line plot rather than a wireframe plot. Defaults to 50.
- rstride, cstrideint
-
Downsampling stride in each direction. These arguments are mutually exclusive with rcount and ccount. If only one of rstride or cstride is set, the other defaults to 1. Setting a stride to zero causes the data to be not sampled in the corresponding direction, producing a 3D line plot rather than a wireframe plot.
'classic' mode uses a default of
rstride = cstride = 1instead of the new default ofrcount = ccount = 50. - **kwargs
-
Other keyword arguments are forwarded to
Line3DCollection.
Examples using mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe
© 2012–2026 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe.html