mpl_toolkits.mplot3d.axes3d.Axes3D.contourf#

Axes3D.contourf(X,Y,Z,*args,zdir='z',offset=None,axlim_clip=False,data=None,**kwargs)[source]#

Create a 3D filled contour plot.

Parameters:
X, Y, Zarray-like

Input data. SeeAxes.contourf for supported data shapes.

zdir{'x', 'y', 'z'}, default: 'z'

The direction to use.

offsetfloat, optional

If specified, plot a projection of the contour lines at thisposition in a plane normal tozdir.

axlim_clipbool, default: False

Whether to hide lines with a vertex outside the axes view limits.

Added in version 3.10.

dataindexable object, optional

If given, all parameters also accept a strings, which isinterpreted asdata[s] ifs is a key indata.

*args, **kwargs

Other arguments are forwarded tomatplotlib.axes.Axes.contourf.

Returns:
matplotlib.contour.QuadContourSet

Examples usingmpl_toolkits.mplot3d.axes3d.Axes3D.contourf#

3D box surface plot

3D box surface plot

Filled contours

Filled contours

Project filled contour onto a graph

Project filled contour onto a graph