plot_projections

gala.dynamics.plot_projections(x, relative_to=None, autolim=True, axes=None, subplots_kwargs={}, labels=None, plot_function=None, **kwargs)[source]

Given N-dimensional quantity, x, make a figure containing 2D projections of all combinations of the axes.

Parameters:

x : array_like

Array of values. axis=0 is assumed to be the dimensionality, axis=1 is the time axis. See Array shapes for more information.

relative_to : bool (optional)

Plot the values relative to this value or values.

autolim : bool (optional)

Automatically set the plot limits to be something sensible.

axes : array_like (optional)

Array of matplotlib Axes objects.

subplots_kwargs : dict (optional)

Dictionary of kwargs passed to subplots().

labels : iterable (optional)

List or iterable of axis labels as strings. They should correspond to the dimensions of the input orbit.

plot_function : callable (optional)

The matplotlib plot function to use. By default, this is scatter(), but can also be, e.g., plot().

**kwargs

All other keyword arguments are passed to the plot_function. You can pass in any of the usual style kwargs like color=..., marker=..., etc.

Returns:

fig : Figure