Arrow3D¶
- class visualize.utils.Arrow3D(x, y, z, dx, dy, dz, *args, **kwargs)¶
Draw a 3D annotation arrow on a matplotlib 3D plot
See: https://gist.github.com/WetHat/1d6cd0f7309535311a539b42cccca89c
- Parameters:¶
x (float) – x coordinate of the arrow starting point.
y (float) – y coordinate of the arrow starting point.
z (float) – z coordinate of the arrow starting point.
dx (float) – x coordinate difference of the arrow direction.
dy (float) – y coordinate difference of the arrow direction.
dz (float) – z coordinate difference of the arrow direction.
*args – Additional positional arguments passed to FancyArrowPatch.
**kwargs – Additional keyword arguments passed to FancyArrowPatch.
- Attributes:¶
- _dxdydz¶
the dx, dy, dz coordinate difference of the arrow, i.e. where it points to relative to its origin.
- Type:¶
tuple
- Methods:¶
draw
(renderer)Draw the arrow.
do_3d_projection
(renderer)Project the arrow onto the Axes3D object.