Skip to content
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

Relative lengths in 3d quiver plots #7448

Closed
fuglede opened this issue Nov 12, 2016 · 1 comment
Closed

Relative lengths in 3d quiver plots #7448

fuglede opened this issue Nov 12, 2016 · 1 comment

Comments

@fuglede
Copy link

fuglede commented Nov 12, 2016

First of all, thank you to all matplotlib contributors for making what's one of my most used Python libraries.

When wanting to plot a particular vector field on a given surface, I came across Axes3D.quiver which does a good job at exactly that. However, one thing that surprised me is that the scales of the plotted vectors are not based on what is input; only their scale is. The optional argument length can be used to modify the lengths of all vectors at once, but not for individual ones.

I ended up using the workaround in this StackOverflow answer, but that seems less than ideal.

In pictures; desired behavior (vectors at poles are smaller than those at the equator):

desired

Actual behavior (all vectors have the same size):

actual

Version information:

@fuglede
Copy link
Author

fuglede commented Nov 12, 2016

Ah, disregard me, it looks like this is fixed with the introduction of a normalize parameter in 2.0.

@fuglede fuglede closed this as completed Nov 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant