8000 TST: add quiver3D test · matplotlib/matplotlib@3a324c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a324c0

Browse files
committed
TST: add quiver3D test
1 parent f57619c commit 3a324c0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,3 +970,19 @@ def get_formatters(ax, names):
970970
for fmt in get_formatters(row[4], names):
971971
fmt.set_useMathText(
972972
not mpl.rcParams["axes.formatter.use_mathtext"])
973+
974+
975+
@check_figures_equal(extensions=["png"])
976+
def test_quiver3D_smoke(fig_test, fig_ref):
977+
pivot = "middle"
978+
# Make the grid
979+
x, y, z = np.meshgrid(
980+
np.arange(-0.8, 1, 0.2),
981+
np.arange(-0.8, 1, 0.2),
982+
np.arange(-0.8, 1, 0.8)
983+
)
984+
u = v = w = np.ones_like(x)
985+
986+
for fig, length in zip((fig_ref, fig_test), (1, 1.0)):
987+
ax = fig.gca(projection="3d")
988+
ax.quiver(x, y, z, u, v, w, length=length, pivot=pivot)

0 commit comments

Comments
 (0)
0