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

Function test_pathpatch_3d

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py:2403–2412  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

2401
2402@check_figures_equal()
2403def test_pathpatch_3d(fig_test, fig_ref):
2404 ax = fig_ref.add_subplot(projection="3d")
2405 path = Path.unit_rectangle()
2406 patch = PathPatch(path)
2407 art3d.pathpatch_2d_to_3d(patch, z=(0, 0.5, 0.7, 1, 0), zdir='y')
2408 ax.add_artist(patch)
2409
2410 ax = fig_test.add_subplot(projection="3d")
2411 pp3d = art3d.PathPatch3D(path, zs=(0, 0.5, 0.7, 1, 0), zdir='y')
2412 ax.add_artist(pp3d)
2413
2414
2415@image_comparison(baseline_images=['scatter_spiral.png'],

Callers

nothing calls this directly

Calls 4

PathPatchClass · 0.90
add_subplotMethod · 0.80
unit_rectangleMethod · 0.80
add_artistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…