(fig_test, fig_ref)
| 1679 | |
| 1680 | @check_figures_equal() |
| 1681 | def 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") |
nothing calls this directly
no test coverage detected
searching dependent graphs…