MCPcopy
hub / github.com/matplotlib/matplotlib / test_contour3d

Function test_contour3d

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:228–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226@mpl3d_image_comparison(['contour3d.png'], style='mpl20',
227 tol=0 if platform.machine() == 'x86_64' else 0.002)
228def test_contour3d():
229 plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
230 fig = plt.figure()
231 ax = fig.add_subplot(projection='3d')
232 X, Y, Z = axes3d.get_test_data(0.05)
233 ax.contour(X, Y, Z, zdir='z', offset=-100, cmap="coolwarm")
234 ax.contour(X, Y, Z, zdir='x', offset=-40, cmap="coolwarm")
235 ax.contour(X, Y, Z, zdir='y', offset=40, cmap="coolwarm")
236 ax.axis(xmin=-40, xmax=40, ymin=-40, ymax=40, zmin=-100, zmax=100)
237
238
239@mpl3d_image_comparison(['contour3d_extend3d.png'], style='mpl20')

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_subplotMethod · 0.80
contourMethod · 0.45
axisMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…