MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_tricontour

Function test_tricontour

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

Source from the content-addressed store, hash-verified

301
302@mpl3d_image_comparison(['tricontour.png'], tol=0.02, style='mpl20')
303def test_tricontour():
304 plt.rcParams['axes3d.automargin'] = True # Remove when image is regenerated
305 fig = plt.figure()
306
307 np.random.seed(19680801)
308 x = np.random.rand(1000) - 0.5
309 y = np.random.rand(1000) - 0.5
310 z = -(x**2 + y**2)
311
312 ax = fig.add_subplot(1, 2, 1, projection='3d')
313 ax.tricontour(x, y, z)
314 ax = fig.add_subplot(1, 2, 2, projection='3d')
315 ax.tricontourf(x, y, z)
316
317
318def test_contour3d_1d_input():

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_subplotMethod · 0.80
tricontourMethod · 0.80
tricontourfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…