Last active
October 16, 2024 07:33
-
-
Save WetHat/1d6cd0f7309535311a539b42cccca89c to your computer and use it in GitHub Desktop.
Matplotlib: 3D Arrows and 3D Annotations
Thanks for the gist! Is there a license for it?
One suggestion for this code is add return arrow
to the end of def _arrow3D
to read:
def _arrow3D(ax, x, y, z, dx, dy, dz, *args, **kwargs):
'''Add an 3d arrow to an `Axes3D` instance.'''
arrow = Arrow3D(x, y, z, dx, dy, dz, *args, **kwargs)
ax.add_artist(arrow)
return arrow
This will make other artist3d functions work, such as set_visible
P.S. Would you like to PR to matplotlib? This would be helpful...
tested on November 12, 2023 and works
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just what I needed. Thank you!!