8000 changed convoluted square roots to hypot · matplotlib/matplotlib@fd83166 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd83166

Browse files
committed
changed convoluted square roots to hypot
1 parent 969c613 commit fd83166

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/quiver_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
# 4
5757
plt.figure()
58-
M = np.sqrt(np.power(U, 2) + np.power(V, 2))
58+
M = np.hypot(U, V)
5959
Q = plt.quiver(X, Y, U, V, M,
6060
units='x',
6161
pivot='tip',

0 commit comments

Comments
 (0)
0