Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bcf302

Browse files
committed
Improved api change description
Fixed typo, changed quotes, improved descriptions.
1 parent 2edbf13 commit 5bcf302

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
Modified the 3D quiver function in mpl_toolkits.mplot3d.axes3d.py to have the dafaults: normalize=False, pivot='tail'
1+
New defaults for 3D quiver function in mpl_toolkits.mplot3d.axes3d.py
22
```````````````````````````
3-
Matplotlib has both a 2D and a 3D "quiver" function. These changes affect only the 3D function and make the default behavior of the 3D function match 2D version. There are two main changes:
3+
Matplotlib has both a 2D and a 3D `quiver` function. These changes affect only the 3D function and make the default behavior of the 3D function match 2D version. There are two changes:
44

5-
1) The 3D quiver function previously normalized the arrows to be the same length, which makes it unusable for situations where the arrows should be different lengths and does not match the behavior of the 2D function. This normalization behavior is now controlled with the "normalize" keyword, which defaults to False.
5+
1) The 3D quiver function previously normalized the arrows to be the same length, which makes it unusable for situations where the arrows should be different lengths and does not match the behavior of the 2D function. This normalization behavior is now controlled with the `normalize` keyword, which defaults to False.
66

7-
2) The "pivot" keyword now defaults to "tail" insteaf of "tip". This was done in order to match the default behavior of the 2D quiver function.
7+
2) The `pivot` keyword now defaults to `tail` insteaf of `tip`. This was done in order to match the default behavior of the 2D quiver function.
88

9-
To obtain the previous behavior with the 3D quiver function, one can call the function with:
9+
To obtain the previous behavior with the 3D quiver function, one can call the function with ::
1010

11-
ax.quiver(x, y, z, u, v, w, normalize=True, pivot='tip')
11+
ax.quiver(x, y, z, u, v, w, normalize=True, pivot='tip')
1212

13-
where "ax" is a axes3d object created with something like:
13+
where "ax" is a axes3d object created with something like ::
1414

15-
import mpl_toolkits.mplot3d.axes3d
16-
ax = plt.sublot(111, projection='3d')
15+
import mpl_toolkits.mplot3d.axes3d
16+
ax = plt.sublot(111, projection='3d')

0 commit comments

Comments
 (0)