8000 updated quiver3d tests to use pivot='tip' and normalize=True · matplotlib/matplotlib@c853111 · GitHub
[go: up one dir, main page]

Skip to content

Commit c853111

Browse files
committed
updated quiver3d tests to use pivot='tip' and normalize=True
1 parent 8ac7544 commit c853111

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/mplot3d/quiver3d_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) *
1515
np.sin(np.pi * z))
1616

17-
ax.quiver(x, y, z, u, v, w, length=0.1,normalize=True)
17+
ax.quiver(x, y, z, u, v, w, length=0.1, normalize=True)
1818

1919
plt.show()

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_quiver3d():
215215
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) *
216216
np.sin(np.pi * z))
217217

218-
ax.quiver(x, y, z, u, v, w, length=0.1)
218+
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='tip', normalize=True)
219219

220220
@image_comparison(baseline_images=['quiver3d_empty'], remove_text=True)
221221
def test_quiver3d_empty():
@@ -229,7 +229,7 @@ def test_quiver3d_empty():
229229
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) *
230230
np.sin(np.pi * z))
231231

232-
ax.quiver(x, y, z, u, v, w, length=0.1)
232+
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='tip', normalize=True)
233233

234234
@image_comparison(baseline_images=['quiver3d_masked'], remove_text=True)
235235
def test_quiver3d_masked():
@@ -247,7 +247,7 @@ def test_quiver3d_masked():
247247
u = np.ma.masked_where((-0.4 < x) & (x < 0.1), u, copy=False)
248248
v = np.ma.masked_where((0.1 < y) & (y < 0.7), v, copy=False)
249249

250-
ax.quiver(x, y, z, u, v, w, length=0.1)
250+
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='tip', normalize=True)
251251

252252
@image_comparison(baseline_images=['quiver3d_pivot_middle'], remove_text=True,
253253
extensions=['png'])
@@ -262,7 +262,7 @@ def test_quiver3d_pivot_middle():
262262
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) *
263263
np.sin(np.pi * z))
264264

265-
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='middle')
265+
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='middle', normalize=True)
266266

267267
@image_comparison(baseline_images=['quiver3d_pivot_tail'], remove_text=True,
268268
extensions=['png'])
@@ -277,7 +277,7 @@ def test_quiver3d_pivot_tail():
277277
w = (np.sqrt(2.0 / 3.0) * np.cos(np.pi * x) * np.cos(np.pi * y) *
278278
np.sin(np.pi * z))
279279

280-
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='tail')
280+
ax.quiver(x, y, z, u, v, w, length=0.1, pivot='tail', normalize=True)
281281

282282

283283
@image_comparison(baseline_images=['axes3d_labelpad'], extensions=['png'])

0 commit comments

Comments
 (0)
0