aerosandbox.tools.pretty_plots.threedim#

Module Contents#

Functions#

figure3d([nrows, ncols, orthographic, box_aspect, ...])

Creates a new 3D figure. Args and kwargs are passed into matplotlib.pyplot.figure().

ax_is_3d([ax])

Determines if a Matplotlib axis object is 3D or not.

set_preset_3d_view_angle(preset_view)

Attributes#

aerosandbox.tools.pretty_plots.threedim.preset_view_angles[source]#
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.

aerosandbox.tools.pretty_plots.threedim.set_preset_3d_view_angle(preset_view)[source]#
Parameters:

preset_view (str) –

Return type:

None

aerosandbox.tools.pretty_plots.threedim.t[source]#