plot-gp¶
CLI Reference¶
rgpycrumbs chemgp plot-gp¶
ChemGP figure generation from HDF5 data.
Usage
rgpycrumbs chemgp plot-gp [OPTIONS] COMMAND [ARGS]...
batch¶
Generate multiple plots from a TOML config.
Usage
rgpycrumbs chemgp plot-gp batch [OPTIONS]
Options
- -c, --config <config_path>¶
Required TOML config listing plots to generate.
- -b, --base-dir <base_dir>¶
Base directory for relative paths in config.
- --dpi <dpi>¶
Output resolution.
- -j, --parallel <parallel>¶
Number of parallel jobs (default: 1).
convergence¶
Force/energy convergence vs oracle calls.
Usage
rgpycrumbs chemgp plot-gp convergence [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
fps¶
FPS subset visualization (PCA scatter).
Usage
rgpycrumbs chemgp plot-gp fps [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
nll¶
MAP-NLL landscape in hyperparameter space.
Usage
rgpycrumbs chemgp plot-gp nll [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
profile¶
NEB energy profile (image index vs delta E).
Usage
rgpycrumbs chemgp plot-gp profile [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
quality¶
GP surrogate quality progression (multi-panel).
Usage
rgpycrumbs chemgp plot-gp quality [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
- --n-points <n_points>¶
rff¶
RFF approximation quality vs exact GP.
Usage
rgpycrumbs chemgp plot-gp rff [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
sensitivity¶
Hyperparameter sensitivity grid (3x3).
Usage
rgpycrumbs chemgp plot-gp sensitivity [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
surface¶
2D PES contour plot.
Usage
rgpycrumbs chemgp plot-gp surface [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
- --clamp-lo <clamp_lo>¶
- --clamp-hi <clamp_hi>¶
- --contour-step <contour_step>¶
trust¶
Trust region illustration (1D slice).
Usage
rgpycrumbs chemgp plot-gp trust [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
variance¶
GP variance overlaid on PES.
Usage
rgpycrumbs chemgp plot-gp variance [OPTIONS]
Options
- --dpi <dpi>¶
Output resolution.
- -H, --height <height>¶
Figure height in inches.
- -W, --width <width>¶
Figure width in inches.
- -o, --output <output_path>¶
Required Output PDF path.
- -i, --input <input_path>¶
Required HDF5 data file.
Overview¶
plot-gp reads HDF5 files produced by ChemGP (the Rust crate chemgp-core) and
generates publication-quality PDF figures via chemparseplot.
Subcommand |
Plot type |
Backend |
|---|---|---|
convergence |
Oracle calls vs force/energy |
plotnine |
surface |
2D PES contour + NEB path overlay |
matplotlib |
quality |
GP surrogate progression (multi-panel) |
matplotlib |
rff |
RFF vs exact GP error (two-panel) |
plotnine |
nll |
MAP-NLL landscape in hyperparameter space |
matplotlib |
sensitivity |
3x3 hyperparameter sensitivity grid |
matplotlib |
trust |
Trust region illustration (1D slice) |
matplotlib |
variance |
GP variance hatching on PES |
matplotlib |
fps |
FPS subset PCA scatter |
plotnine |
profile |
NEB energy profile across images |
plotnine |
batch |
TOML-driven batch figure generation |
(all) |
Common Options¶
All single-plot subcommands accept:
--input/-iPath to the HDF5 file (required)
--output/-oOutput PDF/PNG path (required)
--widthFigure width in inches (default varies by type)
--heightFigure height in inches (default varies by type)
--dpiResolution (default 300)
Single-Plot Usage¶
# Convergence curve from a minimize run
rgpycrumbs chemgp plot-gp convergence -i output/leps_minimize.h5 -o convergence.pdf
# 2D surface with NEB path overlay
rgpycrumbs chemgp plot-gp surface -i output/leps_neb.h5 -o surface.pdf
# NLL landscape
rgpycrumbs chemgp plot-gp nll -i output/leps_nll.h5 -o nll.pdf
Batch Mode¶
Define a TOML config listing all plots, then generate them in one command:
rgpycrumbs chemgp plot-gp batch --config figures.toml
See the batch tutorial for a worked example with a full TOML config.
Energy Clamping¶
Surface and quality plots auto-detect clamping ranges from the filename:
Files containing
mbuse[-200, 50]Files containing
lepsuse[-5, 5]
Override with --clamp-lo and --clamp-hi flags on the subcommand, or
clamp_lo / clamp_hi keys in the TOML config.
API Reference¶
For developer details and source code see
rgpycrumbs.chemgp.plot_gp.
The plotting functions themselves live in
chemparseplot at
chemparseplot.plot.chemgp.