aerosandbox.tools.pretty_plots.quickplot#

Module Contents#

Functions#

qp(*args[, backend, show, plotly_renderer, ...])

Quickly plots ("QP") a 1D, 2D, or 3D dataset as a line plot with markers. Useful for exploratory data analysis.

Attributes#

x

aerosandbox.tools.pretty_plots.quickplot.qp(*args, backend='plotly', show=True, plotly_renderer='browser', orthographic=True, stacklevel=1)[source]#

Quickly plots (“QP”) a 1D, 2D, or 3D dataset as a line plot with markers. Useful for exploratory data analysis.

Example

>>> import aerosandbox.numpy as np
>>>
>>> x = np.linspace(0, 10)
>>> y = x ** 2
>>> z = np.sin(x)
>>> qp(x, y, z)
Parameters:
  • *args – The arguments that you want to plot. You can provide 1, 2, or 3 arrays, all of which should be 1D and of the same length.

  • backend – The backend to use. Current options: * “plotly”

  • show – A boolean of whether or not to show the plot.

  • plotly_renderer (Union[str, None]) – A string of what to use as the Plotly renderer. If you don’t want to overwrite a default that you’ve already set, set this variable to None.

  • orthographic – A boolean of whether or not to use an orthographic (rather than persepctive) projection when viewing 3D plots.

  • stacklevel – (Advanced) Choose the level of the stack that you want to retrieve plot labels at. Higher

  • higher (integers will get you) –

  • warnings.warn(). (argument in) –

Return type:

None

Returns: None (in-place)

aerosandbox.tools.pretty_plots.quickplot.x[source]#