-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Removed normalization of arrows in 3D quiver #5458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I removed the normalization of the arrows in 3D quiver to match the behavior of the 2D quiver plot. Also, I changed the default pivot point to be ‘tail’ in order to match the 2D quiver plot. Also, clarified the comment about normalizing the ‘uvw’ variable.
lib/mpl_toolkits/mplot3d/axes3d.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhm, I think you mean to assign to a variable called "normalize"
This will also likely need to update the image tests, I think (or at least have some of them use |
also added a space before division. Also
I fixed the typos. I don't know much about the tests, but I added "normalize=True" to the quiver3d_demo in order to keep it's behavior the same. |
examples/mplot3d/quiver3d_demo.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need a space after the comma.
The tests are located in |
Sorry, I was confused about normalize vs the Still think this is a good idea, but not for the reason I used to. This needs an entry in https://github.com/matplotlib/matplotlib/tree/master/doc/api/api_changes with a note about how to return to the original behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, sorry to be picky
If you don't normalize the vectors how does |
In general 👍 . |
Fixed typo, changed quotes, improved descriptions.
Thanks! |
I slightly modified the description of the length keyword argument to indicate that it doesn't actually set the length of the arrows when normalize is False (it just scales them). Let me know if there are other suggestions for this PR. |
👍 from me. Leave this to @WeatherGod to push the button. |
Removed normalization of arrows in 3D quiver
Thank you @DanHickstein! @tacaswell, I take it that this will need to be cherry-picked to v2.0.x branch? |
Yes |
Removed normalization of arrows in 3D quiver
cherrypicked to v2.0.x as bf6e976 |
Awesome! Thanks for your help! |
@DanHickstein Thank you for your work! |
Feedback: Awsome! this modified file works properly and solves the "quiver" problems perfectly! Love your work! |
I removed the normalization of the arrows in 3D quiver to match the behavior of the 2D quiver plot.
Also, I changed the default pivot point to be ‘tail’ in order to match the 2D quiver plot.
Finally, clarified the comment about normalizing the ‘uvw’ variable.
This was suggested here:
#4211