aerosandbox.tools.pretty_plots.threedim
#
Module Contents#
Functions#
|
Creates a new 3D figure. Args and kwargs are passed into matplotlib.pyplot.figure(). |
|
Determines if a Matplotlib axis object is 3D or not. |
|
Attributes#
- aerosandbox.tools.pretty_plots.threedim.figure3d(nrows=1, ncols=1, orthographic=True, box_aspect=None, adjust_colors=True, computed_zorder=True, ax_kwargs=None, **fig_kwargs)[source]#
Creates a new 3D figure. Args and kwargs are passed into matplotlib.pyplot.figure().
Returns: (fig, ax)
- Parameters:
nrows (int) –
ncols (int) –
orthographic (bool) –
box_aspect (Tuple[float]) –
adjust_colors (bool) –
computed_zorder (bool) –
ax_kwargs (Dict) –
- Return type:
Tuple[matplotlib.figure.Figure, mpl_toolkits.mplot3d.axes3d.Axes3D]
- aerosandbox.tools.pretty_plots.threedim.ax_is_3d(ax=None)[source]#
Determines if a Matplotlib axis object is 3D or not.
- Parameters:
ax (matplotlib.axes.Axes) – The axis object. If not given, uses the current active axes.
- Return type:
bool
Returns: A boolean of whether the axis is 3D or not.