chemotools.plotting#
Plotting utilities for creating publication-quality visualizations of spectral data and model diagnostics. These classes follow a consistent API pattern and can be composed together for complex visualizations.
Import from this module:
from chemotools.plotting import (
SpectraPlot,
ScoresPlot,
LoadingsPlot,
DistancesPlot,
ExplainedVariancePlot,
FeatureSelectionPlot,
PredictedVsActualPlot,
YResidualsPlot,
QQPlot,
ResidualDistributionPlot,
)
Available Classes#
Spectral Visualization
Class |
Description |
|---|---|
Plot spectral data with categorical or continuous coloring |
|
Visualize feature selection on spectral data |
Model Diagnostics
Class |
Description |
|---|---|
Scatter plot of model scores (latent space projections) |
|
Line plot of model loadings (feature weights) |
|
Bar plot of explained variance by component |
|
Scatter plot for outlier detection (Q residuals, Hotelling’s T²) |
Regression Diagnostics
Class |
Description |
|---|---|
Scatter plot of predicted vs actual values |
|
Plot of Y residuals for homoscedasticity analysis |
|
Q-Q plot for assessing normality of residuals |
|
Histogram of residuals with normal distribution overlay |
See Also#
Plotting Methods Overview - Complete documentation with examples and visual guides