ggml_ot.pl.scatter_3d

Contents

ggml_ot.pl.scatter_3d#

ggml_ot.pl.scatter_3d(X, *, color_by=None, style_by=None, components=(0, 1, 2), palette=None, ax=None, s=15, alpha=0.4, elev=25, azim=130, xlabel='Dim 1', ylabel='Dim 2', zlabel='Dim 3', title=None, legend=True, show=None, save=None)[source]#

3-D scatter plot.

Parameters:
X ndarray

(N, D) point array (columns components are shown).

color_by Optional[ndarray] (default: None)

Arrays for hue and marker style.

style_by Optional[ndarray] (default: None)

Arrays for hue and marker style.

components tuple[int, int, int] (default: (0, 1, 2))

Three column indices to plot.

palette UnionType[dict, str, None] (default: None)

Colour mapping.

ax Optional[Axes] (default: None)

Existing 3-D axes; creates new figure if None.

s float (default: 15)

Marker size and opacity.

alpha float (default: 0.4)

Marker size and opacity.

elev float (default: 25)

Camera elevation and azimuth.

azim float (default: 130)

Camera elevation and azimuth.

xlabel str (default: 'Dim 1')

Axis labels.

ylabel str (default: 'Dim 2')

Axis labels.

zlabel str (default: 'Dim 3')

Axis labels.

title Optional[str] (default: None)

Plot title.

legend bool (default: True)

Whether to show a legend.

show Optional[bool] (default: None)

Passed to savefig_or_show.

save UnionType[str, bool, None] (default: None)

Passed to savefig_or_show.

Return type:

Axes

Returns:

matplotlib.axes.Axes