py3dframe.Frame.draw#
- Frame.draw(ax: Axes, xcolor: str = 'r', ycolor: str = 'g', zcolor: str = 'b', scale: float = 1, **kwargs) Tuple[Line2D, Line2D, Line2D] [source]#
Draw the frame in the matplotlib axes (projection 3D).
- Parameters:
ax (matplotlib.axes.Axes) – The matplotlib axes to draw the frame.
xcolor (str, optional) – The color of the x-axis. Default is ‘r’.
ycolor (str, optional) – The color of the y-axis. Default is ‘g’.
zcolor (str, optional) – The color of the z-axis. Default is ‘b’.
scale (float, optional) – The scale of the frame. Default is 1.
**kwargs – Additional arguments to pass to the matplotlib.lines.Line2D constructor.
- Returns:
The x-axis, y-axis and z-axis of the frame.
- Return type:
Tuple[matplotlib.lines.Line2D, matplotlib.lines.Line2D, matplotlib.lines.Line2D]