Figure¶
-
class
qaa.libs.figure.Figure(*, azim=120, elevation=30)¶ Bases:
objectCreate a plot of 2D and 3D plots.
Attributes Summary
Return a holoviews Layout.
Methods Summary
draw(data, *[, centers])Draw the first three components in subplots.
save(filename, *[, dpi, title])Save the image to disk.
Attributes Documentation
-
figure¶ Return a holoviews Layout.
- Returns
A multicolumn 2D and 3D scatter plots
- Return type
hv.Layout
Methods Documentation
-
draw(data, *, centers=Empty DataFrame Columns: [] Index: [])¶ Draw the first three components in subplots.
- Parameters
data (pd.DataFrame) – Matrix with shape (n_samples, n_components)
centers (pd.DataFrame, optional) – Vector of cluster centers (n_components, )
- Return type
None
Notes
Four subplots are created. * component 1 vs. component 2 * component 1 vs. component 3 * component 2 vs. component 3 * 3D plot
-
save(filename, *, dpi=600, title=None)¶ Save the image to disk.
- Parameters
filename (PathLike) – Image file
dpi (int) – Image resolution
title (str) – Figure title
- Return type
None
-