MCPcopy
hub / github.com/matplotlib/matplotlib / test_contourf3d

Function test_contourf3d

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

Source from the content-addressed store, hash-verified

250
251@mpl3d_image_comparison(['contourf3d.png'], style='mpl20')
252def test_contourf3d():
253 plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
254 fig = plt.figure()
255 ax = fig.add_subplot(projection='3d')
256 X, Y, Z = axes3d.get_test_data(0.05)
257 ax.contourf(X, Y, Z, zdir='z', offset=-100, cmap="coolwarm")
258 ax.contourf(X, Y, Z, zdir='x', offset=-40, cmap="coolwarm")
259 ax.contourf(X, Y, Z, zdir='y', offset=40, cmap="coolwarm")
260 ax.set_xlim(-40, 40)
261 ax.set_ylim(-40, 40)
262 ax.set_zlim(-100, 100)
263
264
265@mpl3d_image_comparison(['contourf3d_fill.png'], style='mpl20')

Callers

nothing calls this directly

Calls 6

figureMethod · 0.80
add_subplotMethod · 0.80
set_zlimMethod · 0.80
contourfMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…