|
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 |
2 | 2 | ```````````````````````````
|
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: |
4 | 4 |
|
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. |
6 | 6 |
|
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. |
8 | 8 |
|
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 :: |
10 | 10 |
|
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') |
12 | 12 |
|
13 |
| -where "ax" is a axes3d object created with something like: |
| 13 | +where "ax" is a axes3d object created with something like :: |
14 | 14 |
|
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