[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/stable/api/_as_gen/../../gallery/style_sheets/../mplot3d/contour3d_2.html [Back]  [Original]

Plot contour (level) curves in 3D using the extend3d option — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

Plot contour (level) curves in 3D using the extend3d option#

This modification of the Plot contour (level) curves in 3D example uses extend3d=True to extend the curves vertically into 'ribbons'.

import matplotlib.pyplot as plt

from mpl_toolkits.mplot3d import axes3d

ax = plt.figure().add_subplot(projection='3d')
X, Y, Z = axes3d.get_test_data(0.05)
ax.contour(X, Y, Z, extend3d=True, cmap="coolwarm")

plt.show()
contour3d 2 [contour3d 2]

Tags: plot-type: 3D level: beginner

Gallery generated by Sphinx-Gallery


Web Proxy Viewer  |  New URL  |  Original Page