jaxrens.cli.plot

jaxrens plot <file> — produce a PNG from a single artefact.

Dispatches by filename suffix:

*.adaptation.h5    → 2-panel step-size + acceptance-rate plot
                     (mean ± std across replicas).
*.re_stats.h5      → swap acceptance per adjacent pair vs iteration.
*.max_neighbors.h5 → 2-panel: per-walker count percentiles (top) +
                     distribution heatmap (bottom), with bucket overlay.
*.energies         → dead-point energy trail (and volume if present).

This is the “quick look at one file” utility — for full multi-run cohort analysis use MonitorCollection.from_multi_run_directory and the methods on the collection.

Functions

plot_adaptation

Render a 2-panel step-size + acceptance-rate figure from an .adaptation.h5 file.

plot_energies

Render the dead-point energy (and volume if NPT) trail from a .energies log.

plot_file

Auto-detect file kind and render the corresponding plot.

plot_max_neighbors_file

Render a 2-panel neighbor-bucket diagnostic figure from a .max_neighbors.h5 file.

plot_re_stats

Render a per-pair swap-acceptance plot from a .re_stats.h5 file.