graphclust.plotting#
Plotting helpers (matplotlib) with the color scheme used in the book.
Graph, partition, dendrogram, VAT, component-plane and quality-curve plots.
Functions#
|
Component planes: the map once per feature, nodes shaded by that feature of their codebook vector. |
|
Density peaks decision graph (local density against distance to a denser sample). |
|
SciPy dendrogram of a linkage matrix with an optional cut line. |
|
Scatter plot of a 2-D embedding colored by labels (or by a continuous value). |
|
Draw a graph whose nodes have 2-D or 3-D |
|
Scatter plot of 2-D (or 3-D) data colored by cluster label (noise |
|
Plot several quality curves (e.g. trustworthiness against k) given as |
|
Show a (i)VAT image: dark diagonal blocks are clusters. |
Constants#
Okabe--Ito colors (color-blind safe), the categorical palette of all figures. |