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

Function test_quiver3D_smoke

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

Source from the content-addressed store, hash-verified

1679
1680@check_figures_equal()
1681def test_quiver3D_smoke(fig_test, fig_ref):
1682 pivot = "middle"
1683 # Make the grid
1684 x, y, z = np.meshgrid(
1685 np.arange(-0.8, 1, 0.2),
1686 np.arange(-0.8, 1, 0.2),
1687 np.arange(-0.8, 1, 0.8)
1688 )
1689 u = v = w = np.ones_like(x)
1690
1691 for fig, length in zip((fig_ref, fig_test), (1, 1.0)):
1692 ax = fig.add_subplot(projection="3d")
1693 ax.quiver(x, y, z, u, v, w, length=length, pivot=pivot)
1694
1695
1696@image_comparison(["minor_ticks.png"], style="mpl20")

Callers

nothing calls this directly

Calls 2

add_subplotMethod · 0.80
quiverMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…