-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
colormap support for 3d quiver #3382
Comments
cc @WeatherGod |
It's currently possible to do this with a little bit of colormap trickery. Assuming you have an array of scalar color values between 0 and 1 named
I agree that support for this would be nice to have directly in the |
This actually goes back to a limitation of the |
I also just realized that you'd need to do |
I'm reading in the linecollection API for matplotlib 1.5.1 and it looks like you should be able to assign colors arrow-by-arrow but I haven't determined what format the library wants the call to be in. The library makes it sound like it needs a nxmxkx3 or a nxmxkx4 array depending on if you are using RGB or RGBA colors. But I'm not having any luck with it. |
Most likely, the problem is that the colors might be getting re-assigned by On Thu, Mar 17, 2016 at 5:02 PM, Ryan Budney notifications@github.com
|
Do you know if one can change the length or width of a 3d quiver plot, element-by-element? I haven't had luck with that, either. |
@delooper I have just opend another issue on specifying colors for each arrow in 3D quiver plot (since this one is more about colormap) in which I have given a work around for my case:
Hope this helps. |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
This is covered by the |
It would be nice to have support for a colormap kwarg (like the
C
kwarg in the 2d implementation ofquiver
http://matplotlib.org/api/axes_api.html?highlight=quiver#matplotlib.axes.Axes.quiver) in the 3d version of quiver.The text was updated successfully, but these errors were encountered: