chemparseplot.plot.surrogate#

Figures for surrogate-assisted saddle searches.

Every function takes the records of :mod:chemparseplot.parse.surrogate.model and returns a :class:matplotlib.figure.Figure; none reads a file or knows the code that produced the data. Colour is never the only channel: each series also differs in marker or line style.

Encodings shared by the figures:

  • teal, circles, solid: the surrogate (posterior mean, predicted force)

  • magenta, squares: the true potential (oracle evaluations, true force)

  • sky, triangles, dashed: a reference (true profile, climbing-image force)

  • coral ticks: decisions to call the oracle

  • dashed black: the force tolerance

.. versionadded:: 1.10.0

Module Contents#

Functions#

_font_search_dirs

_fontconfig_faces

Files fontconfig lists for family; empty when fc-list is absent.

set_font

Draw every figure of this module in family (None: the theme font).

set_legend_fontsize

Set the legend font size (points) of every figure of this module.

_lfs

Legend font size: the module setting, else the figure’s own default.

_measured_legend_height

Height (inches) matplotlib gives a figure legend with these entries.

_wrap_handle_labels

Re-wrap legend labels so two columns fit the figure width.

_legend_layout

Columns and height (inches) for a figure legend of labels.

_style

_rel_energy

_plain_log_axis

Label a log axis with plain numbers at 1, 2 and 5 per decade.

_event_group

_rug

Draw decision marks below ax, one row per kind; return legend handles.

plot_band_profile

Energy along the path: surrogate mean, uncertainty and true evaluations.

plot_band_evolution

Small multiples of the band over outer iterations.

_neb_plot

_strip_indices

Band images for the strip: R, the climbing image, P and, with n_structures, evenly spaced images filling up to that many.

_strip_entries

StructurePlacement entries for the strip.

_critical_labels

(label, path coordinate, energy) of R, the saddle (or climbing image) and P.

_critical_legend

_fit_window

Window around the unfaded surface and all the plotted points.

reduced_coordinates

(s, d) coordinates of the band and of the oracle evaluations.

rmsd_gradients

Energy gradients in the (RMSD to a, RMSD to b) plane.

_drop_cut_labels

Remove contour labels whose text is cut by the axes: they explain nothing.

plot_reduced_landscape

Reaction-valley landscape of a surrogate-assisted NEB.

plot_search_convergence

Max atomic force against oracle calls (or outer iterations).

plot_search_comparison

Compare searches of the same reaction: forces per outer and a call ledger.

plot_model_diagnostics

Hyperparameters, training-set size and per-outer cost against x.

plot_single_ended

Curvature along the dimer mode and true force against oracle calls.

plot_campaign_calls

Oracle calls per reaction, ours against comparison methods (dumbbell).

plot_campaign_matrix

Pass matrix: reactions by criteria.

plot_campaign_walls

Wall time per reaction as stacked horizontal bars, one segment per stage.

_layout_axis

Layout labels, cores and a dodge so layouts of one core count separate.

_draw_scaling

plot_scaling

Speedup against cores on log axes, with the ideal line.

plot_strong_scaling

Four panels for one series (a cell), one tick per ranks x threads layout.

plot_efficiency_table

Parallel efficiency (speedup per ideal speedup) as an annotated heat table.

plot_pop_efficiencies

Fixed-work efficiencies per layout (load balance, communication, …).

plot_time_breakdown

Stacked wall time per component for each ranks x threads layout.

_dodge_cores

Multiplicative offsets so layouts of one core count sit side by side.

_best_per_core

Core counts and the largest available value at each, for the joining line.

plot_pop_factors

Fixed-work speedup and the POP efficiency factors against cores.

plot_component_breakdown

Where the wall of one layout goes, per cell, with the Amdahl bound.

_board_axes

One axes per board, top-aligned, with the same row pitch and bar size.

_board_title

plot_cases_calls

Potential evaluations per case: search and independent validation, stacked.

_wall_tick

Bar label. With a deviation, both numbers share its printed place.

plot_cases_wall

Wall time per case on a log axis, one bar each, with its value.

Data#

API#

chemparseplot.plot.surrogate.SURROGATE#

None

chemparseplot.plot.surrogate.ORACLE#

None

chemparseplot.plot.surrogate.REFERENCE#

None

chemparseplot.plot.surrogate.ACQUISITION#

None

chemparseplot.plot.surrogate.HIGHLIGHT#

None

chemparseplot.plot.surrogate.NEUTRAL#

‘#6b6b6b’

chemparseplot.plot.surrogate._FORCE_LABEL#

‘max atomic force (eV/\(\\mathrm{\\AA}\))’

chemparseplot.plot.surrogate._MAX_EVOLUTION_PANELS#

8

chemparseplot.plot.surrogate._MIN_SNAPSHOTS#

2

chemparseplot.plot.surrogate._WALL_INT_MIN#

10

chemparseplot.plot.surrogate._TWO#

2

chemparseplot.plot.surrogate._WALL_INSIDE_MIN_RATIO#

3

chemparseplot.plot.surrogate._EQUAL_ASPECT_MIN#

0.35

chemparseplot.plot.surrogate._EFFICIENCY_DARK#

0.45

chemparseplot.plot.surrogate._FORCE_LABEL_MIN_ROWS#

8

chemparseplot.plot.surrogate._CI_ARMS#

None

chemparseplot.plot.surrogate._FONT: list[str | None]#

[None]

chemparseplot.plot.surrogate._LEGEND_PT: list[float | None]#

[None]

chemparseplot.plot.surrogate.FONT_DIRS_ENV#

‘CHEMPARSEPLOT_FONT_DIRS’

chemparseplot.plot.surrogate._font_search_dirs(extra) → list[pathlib.Path]#
chemparseplot.plot.surrogate._fontconfig_faces(family: str) → list[str]#

Files fontconfig lists for family; empty when fc-list is absent.

chemparseplot.plot.surrogate.set_font(family: str | None, font_dirs: collections.abc.Sequence[str | pathlib.Path] = ()) → None#

Draw every figure of this module in family (None: the theme font).

Faces named <family>*.ttf or .otf (spaces ignored, any case) are searched, after fontconfig (fc-list), recursively in font_dirs, $CHEMPARSEPLOT_FONT_DIRS, ~/.local/share/fonts and /usr/share/fonts and registered with matplotlib. Text and math text use the family. A family that still cannot be resolved raises ValueError naming the directories searched; there is no fallback.

chemparseplot.plot.surrogate.set_legend_fontsize(pt: float | None) → None#

Set the legend font size (points) of every figure of this module.

None keeps each figure’s own size (8 or 9 pt). Layouts that size themselves around the legend (the landscape and the profile with a strip) make room for the larger text.

chemparseplot.plot.surrogate._lfs(default: float) → float#

Legend font size: the module setting, else the figure’s own default.

chemparseplot.plot.surrogate._measured_legend_height(handles, labels, fontsize, ncols, fig_w)#

Height (inches) matplotlib gives a figure legend with these entries.

chemparseplot.plot.surrogate._wrap_handle_labels(handles, fontsize, fig_w, handle_in=0.55)#

Re-wrap legend labels so two columns fit the figure width.

chemparseplot.plot.surrogate._legend_layout(labels, fontsize, fig_w, handle_in=0.55, max_cols=2)#

Columns and height (inches) for a figure legend of labels.

Two columns when two columns of the longest label fit the figure width, else one; the height follows the number of text lines at fontsize.

chemparseplot.plot.surrogate._style() → None#
chemparseplot.plot.surrogate._rel_energy(snap: chemparseplot.parse.surrogate.model.BandSnapshot, values: numpy.ndarray, unit: str) → numpy.ndarray#
chemparseplot.plot.surrogate._plain_log_axis(axis) → None#

Label a log axis with plain numbers at 1, 2 and 5 per decade.

chemparseplot.plot.surrogate._event_group(kind: str) → str#
chemparseplot.plot.surrogate._GROUP_MARKER#

None

chemparseplot.plot.surrogate._rug(ax, events, xkey: str, y: float, *, transform=None) → list[matplotlib.lines.Line2D]#

Draw decision marks below ax, one row per kind; return legend handles.

chemparseplot.plot.surrogate.plot_band_profile(band: chemparseplot.parse.surrogate.model.BandHistory, *, snapshot: chemparseplot.parse.surrogate.model.BandSnapshot | None = None, energy_unit: str = 'eV', sigma_scale: float = 2.0, show_points: bool = True, observations: str = 'fade', observation_distance: float = 0.1, structures: str | None = None, label_critical_points: bool | None = None, n_structures: int | None = None, strip_renderer: str = 'xyzrender', rotation: str = 'auto', xyzrender_config: str = 'paton', ax=None, title: str | None = None) → matplotlib.figure.Figure#

Energy along the path: surrogate mean, uncertainty and true evaluations.

The curve is the posterior mean at the images; the ribbon is +/- sigma_scale predictive standard deviations when the producer recorded them. Magenta squares are images whose true energy is known, diamonds the oracle evaluations projected on the path, the dashed blue curve the true profile when one was recomputed on the final path.

An evaluation off the final band is not an error of the mean, so observations says how distance is shown: "fade" colours each diamond by its Cartesian distance from the final path (colourbar, dark is near); "near" draws only those within observation_distance (A) and says in the legend how many farther ones were omitted; "none" (or show_points=False) draws none.

label_critical_points puts the letters R, SP (or CI) and P at their points on the curve; it is on whenever a strip is drawn and selectable without one (the structures can then be shown elsewhere, e.g. under the landscape).

structures ("crit_points" or "all", n_structures for evenly spaced images) adds the strip of structures that rgpycrumbs eon plt-neb draws under its profile, captioned R, SP (or CI) and P and tied to their points on the curve; it needs band.numbers (atom types) and raises ValueError naming the files looked at otherwise.

chemparseplot.plot.surrogate.plot_band_evolution(band: chemparseplot.parse.surrogate.model.BandHistory, *, energy_unit: str = 'eV', max_panels: int = _MAX_EVOLUTION_PANELS) → matplotlib.figure.Figure#

Small multiples of the band over outer iterations.

With two or more snapshots, one profile panel per snapshot (evenly spaced in oracle calls, at most max_panels) on shared axes. A producer that stores only the final band gets the acquisition record instead: outer iteration against the image the oracle was called on, one marker shape per kind of decision.

chemparseplot.plot.surrogate._STRIP_MAX_COLS#

6

chemparseplot.plot.surrogate._STRIP_ZOOM#

None

chemparseplot.plot.surrogate._STRIP_SPACING#

1.5

chemparseplot.plot.surrogate._STRIP_FILL#

0.92

chemparseplot.plot.surrogate._STRIP_ROW_IN#

1.6

chemparseplot.plot.surrogate._STRIP_LABEL_ROW_IN#

0.28

chemparseplot.plot.surrogate._XLABEL_GAP_IN#

0.5

chemparseplot.plot.surrogate._SAME_GEOMETRY#

0.001

chemparseplot.plot.surrogate._neb_plot()#
chemparseplot.plot.surrogate._strip_indices(n_images, ci, n_structures)#

Band images for the strip: R, the climbing image, P and, with n_structures, evenly spaced images filling up to that many.

chemparseplot.plot.surrogate._strip_entries(band, structures, n_structures, locate)#

StructurePlacement entries for the strip.

locate(positions, image_index_or_None) returns the (x, y) of a structure on the panel the strip belongs to.

chemparseplot.plot.surrogate._critical_labels(band, snap)#

(label, path coordinate, energy) of R, the saddle (or climbing image) and P.

chemparseplot.plot.surrogate._critical_legend(crit, tail)#
chemparseplot.plot.surrogate._fit_window(surf, fade_variance, xs, ys, margin=0.06)#

Window around the unfaded surface and all the plotted points.

The box is widened by margin of its larger side; every given point is inside it.

chemparseplot.plot.surrogate.reduced_coordinates(band: chemparseplot.parse.surrogate.model.BandHistory)#

(s, d) coordinates of the band and of the oracle evaluations.

a and b are the RMSD (A) of a geometry to the reactant and to the product image of the final band; s and d are the progress along and the deviation from the straight reactant-to-product line in the (a, b) plane, the reaction-valley projection of

Mod:

chemparseplot.parse.projection that rgpycrumbs eon plt-neb uses.

chemparseplot.plot.surrogate.rmsd_gradients(positions, grads, ref_a, ref_b)#

Energy gradients in the (RMSD to a, RMSD to b) plane.

Solves g = E_a * grad(a) + E_b * grad(b) in least squares for each Cartesian gradient g, with a = |x - x_a| / sqrt(N) and the same for b: the part of the true gradient that lies in the plane the landscape is drawn in. Returns (E_a, E_b) in energy per angstrom of RMSD.

chemparseplot.plot.surrogate._drop_cut_labels(fig, ax) → None#

Remove contour labels whose text is cut by the axes: they explain nothing.

chemparseplot.plot.surrogate.plot_reduced_landscape(band: chemparseplot.parse.surrogate.model.BandHistory, *, energy_unit: str = 'eV', surface: str | None = 'grad_matern', color_by: str = 'energy', fade_variance: float | None = 0.95, fade_distance: float | None = None, show_variance_contours: bool = True, show_legend: bool = True, label_every: int | None = None, window: str = 'square', xlim: tuple[float, float] | None = None, ylim: tuple[float, float] | None = None, structures: str | None = None, label_critical_points: bool | None = None, n_structures: int | None = None, strip_renderer: str = 'xyzrender', rotation: str = 'auto', xyzrender_config: str = 'paton', ax=None, title: str | None = None) → matplotlib.figure.Figure#

Reaction-valley landscape of a surrogate-assisted NEB.

The same plot rgpycrumbs eon plt-neb draws, through the same functions (:func:chemparseplot.plot.neb.plot_landscape_surface,

Func:

~chemparseplot.plot.neb.plot_landscape_path_overlay,

Func:

~chemparseplot.plot.neb.mark_saddle_point): axes are the progress s and the orthogonal deviation d (RMSD, angstrom) relative to the straight reactant-to-product line, with the theme’s landscape colour map.

What this version adds, each with a legend entry:

  • the GP energy surface is a fresh fit to the oracle energies and the in-plane gradient components in the reduced (s, d) plane, optionally with dashed relative variance contours; it is not the search’s own model. Where the relative variance exceeds fade_variance (default 0.95, the outermost labelled contour; None keeps it all) the surface is faded to the background, so no confident surface is drawn where nothing was evaluated. show_variance_contours=False hides only the dashed contours and their legend entry; surface=None omits the surface;

  • fade_distance additionally fades cells farther than that many angstroms in the displayed (s, d) plane from every oracle observation, providing a deterministic data-support mask;

  • the oracle evaluations as dots, coloured by true energy (color_by="energy") or by order of evaluation ("iteration"); label_every=k also numbers every k-th one, and the legend then says the numbers are the order of evaluation;

  • the final path (its colour is the surrogate mean energy);

  • the climbing image (ringed) and the saddle the search reports (gold star), certified when the producer says the cell passed.

label_critical_points puts R, SP (or CI) and P on the path when no strip is drawn (the structures can be shown elsewhere); with a strip they are always labelled. show_legend=False omits the legend and its reserved layout space.

window sets the extent: "square" (default) is the equal-metric square window of plt-neb; "fit" crops to the bounding box of the part of the surface that is not faded (relative variance at most fade_variance) united with every oracle evaluation, the final path and the saddle, plus a margin, keeping the same angstrom scale on both axes, so the map becomes a rectangle. xlim and ylim set the window explicitly and win over window.

structures adds the strip of structures rgpycrumbs eon plt-neb draws under its landscapes (same renderer and layout constants): "crit_points" draws the reactant, the saddle (or the climbing image) and the product, "all" every band image, and n_structures=N that many images evenly spaced along the band, always including those three. Each structure is captioned on the strip and, for R, SP/CI and P, at its position on the path. The atom types come from band.numbers; without them the call raises ValueError naming the files looked at.

Needs rgpycrumbs (surface models, via JAX).

chemparseplot.plot.surrogate.plot_search_convergence(search: chemparseplot.parse.surrogate.model.SearchHistory, *, x: str = 'oracle_calls', show_training: bool = True, ax=None, title: str | None = None) → matplotlib.figure.Figure#

Max atomic force against oracle calls (or outer iterations).

Magenta squares: true force over the evaluated images; teal circles: force the surrogate predicts; blue triangles: true force at the climbing image. The dashed line is the tolerance; marks below the axis are acquisition decisions. A lower panel gives the training-set size, with the retention cap when the producer dropped observations.

chemparseplot.plot.surrogate.plot_search_comparison(searches: collections.abc.Sequence[chemparseplot.parse.surrogate.model.SurrogateSearch], labels: collections.abc.Sequence[str] | None = None, *, x: str = 'outer') → matplotlib.figure.Figure#

Compare searches of the same reaction: forces per outer and a call ledger.

Top: true force over the evaluated images; middle: true force at the climbing image (both log, with the tolerance); bottom: oracle calls by phase (endpoints, initial band, outer loop, transition, dimer) as stacked bars labelled with the total.

chemparseplot.plot.surrogate.plot_model_diagnostics(search: chemparseplot.parse.surrogate.model.SearchHistory, *, x: str = 'outer') → matplotlib.figure.Figure#

Hyperparameters, training-set size and per-outer cost against x.

Panels appear only for the quantities the producer recorded: kernel amplitude and noise variance (log), length-scale extremes (log), training rows with the retention cap, and stacked seconds per outer iteration for refit, prediction and inner relaxation.

chemparseplot.plot.surrogate.plot_single_ended(history: chemparseplot.parse.surrogate.model.SingleEndedHistory, *, energy_unit: str = 'eV', title: str | None = None) → matplotlib.figure.Figure#

Curvature along the dimer mode and true force against oracle calls.

Top: surrogate curvature per outer step (teal), the measured curvature as open magenta diamonds joined to the surrogate value at the same step by a thin segment; coral ticks mark batches of oracle calls spent on a spectrum. Bottom: true force (log) against the tolerance.

chemparseplot.plot.surrogate._BASE_STYLE#

[(‘s’,), (‘^’,), (‘D’,), (‘v’,), (‘P’,)]

chemparseplot.plot.surrogate.plot_campaign_calls(table: chemparseplot.parse.surrogate.model.CampaignTable, *, calls: str = 'search_calls', log: bool = True, label: str | None = None) → matplotlib.figure.Figure#

Oracle calls per reaction, ours against comparison methods (dumbbell).

One row per reaction, sorted by our calls. Filled teal circle: this campaign (a coral X where it did not converge or pass); open markers: each comparison method; a grey segment spans the smallest to the largest value.

chemparseplot.plot.surrogate.plot_campaign_matrix(table: chemparseplot.parse.surrogate.model.CampaignTable, *, identity_tolerance: float = 0.05) → matplotlib.figure.Figure#

Pass matrix: reactions by criteria.

Filled teal circle: criterion met; coral X: not met; grey dash: not recorded. Columns: converged, index one (one imaginary mode at the located point), identity (|energy delta| within identity_tolerance eV of the reference), passed.

chemparseplot.plot.surrogate.plot_campaign_walls(table: chemparseplot.parse.surrogate.model.CampaignTable, *, stages: collections.abc.Sequence[str] = ('band', 'dimer', 'validation')) → matplotlib.figure.Figure#

Wall time per reaction as stacked horizontal bars, one segment per stage.

chemparseplot.plot.surrogate._layout_axis(table: chemparseplot.parse.surrogate.model.ScalingTable, name: str)#

Layout labels, cores and a dodge so layouts of one core count separate.

chemparseplot.plot.surrogate._SCALING_STYLES#

[(‘-’, ‘o’), (’–’, ‘s’), (‘-.’, ‘^’), (‘:’, ‘D’)]

chemparseplot.plot.surrogate._draw_scaling(ax, table: chemparseplot.parse.surrogate.model.ScalingTable, names, *, ylabel='speedup') → None#
chemparseplot.plot.surrogate.plot_scaling(table: chemparseplot.parse.surrogate.model.ScalingTable, *, ylabel: str = 'speedup') → matplotlib.figure.Figure#

Speedup against cores on log axes, with the ideal line.

Speedup is T_ref(w0) / T(w) with w0 the first worker count of the reference series, or of the series itself when the table names no reference. Layouts that share a core count are dodged sideways; one line joins the fastest layout per core count. Bars span the slowest to the fastest repetition and open markers are runs that hit a cap.

chemparseplot.plot.surrogate.plot_strong_scaling(table: chemparseplot.parse.surrogate.model.ScalingTable, name: str) → matplotlib.figure.Figure#

Four panels for one series (a cell), one tick per ranks x threads layout.

Wall time with the slowest and fastest repetition; speedup against the ideal line; oracle calls of the search; seconds per call. The last two show when the search path changes with the layout, which wall time alone hides. Open markers are runs that hit a cap.

chemparseplot.plot.surrogate.plot_efficiency_table(table: chemparseplot.parse.surrogate.model.ScalingTable) → matplotlib.figure.Figure#

Parallel efficiency (speedup per ideal speedup) as an annotated heat table.

One row per ranks x threads layout, one column per series; a cell without that layout stays blank. Efficiency is against each series’ first point.

chemparseplot.plot.surrogate.plot_pop_efficiencies(layouts: collections.abc.Sequence[str], metrics: dict[str, collections.abc.Sequence[float]], *, title: str | None = None) → matplotlib.figure.Figure#

Fixed-work efficiencies per layout (load balance, communication, …).

metrics maps a name to one value in [0, 1] per layout; each name is a line with its own marker so the panel reads without colour.

chemparseplot.plot.surrogate.plot_time_breakdown(layouts: collections.abc.Sequence[str], parts: dict[str, collections.abc.Sequence[float]], total: collections.abc.Sequence[float] | None = None, *, title: str | None = None) → matplotlib.figure.Figure#

Stacked wall time per component for each ranks x threads layout.

Bars stack the components in the order given; with total the rest of the total is drawn as a grey other segment, and the total is printed above the bar. Segments differ in hatch as well as colour. Components that nest (a stage and its own sub-stage) must not both be passed.

chemparseplot.plot.surrogate._dodge_cores(cores: numpy.ndarray) → numpy.ndarray#

Multiplicative offsets so layouts of one core count sit side by side.

chemparseplot.plot.surrogate._best_per_core(cores, values)#

Core counts and the largest available value at each, for the joining line.

chemparseplot.plot.surrogate.plot_pop_factors(tables: chemparseplot.parse.surrogate.model.PopTable | collections.abc.Sequence[chemparseplot.parse.surrogate.model.PopTable], *, guide: float | None = 0.8, title: str | None = None) → matplotlib.figure.Figure#

Fixed-work speedup and the POP efficiency factors against cores.

One row of two panels per table. Left: T(reference) / T(layout) on log axes, one marker per ranks x threads layout, layouts of one core count dodged sideways and a line through the fastest layout per core count; no ideal line is drawn. Right: the fixed-work efficiency (speedup per core ratio) and every factor of table.metrics on one 0 to 1 axis against cores, each with its own marker and line style, with the guide level (0.8, the threshold the POP methodology uses) as a dotted line. A row is titled by its table’s cell and quantity.

chemparseplot.plot.surrogate._COMPONENT_PALETTE#

None

chemparseplot.plot.surrogate._COMPONENT_HATCHES#

[‘’, ‘//’, ‘..’, ‘xx’, ‘\’, ‘++’, ‘oo’, ‘’]

chemparseplot.plot.surrogate.UNATTRIBUTED_COLOR#

‘#d0d0d0’

chemparseplot.plot.surrogate.plot_component_breakdown(table: chemparseplot.parse.surrogate.model.ComponentTable, layout: str, *, cells: collections.abc.Sequence[str] | None = None, title: str | None = None) → matplotlib.figure.Figure#

Where the wall of one layout goes, per cell, with the Amdahl bound.

Left: one horizontal bar per cell at layout stacking the median seconds of each component in the order of the table, the rest of the total as a grey unattributed segment, and the total at the bar end. Right: for every component the bound 1 / (1 - f) on the whole-run speedup if that component alone took no time, f being its share of the wall; one marker per cell. A component that is a large share of the wall is the only one whose removal moves the total much.

chemparseplot.plot.surrogate._ROW_PITCH_IN#

0.27

chemparseplot.plot.surrogate._PANEL_WIDTH_IN#

4.2

chemparseplot.plot.surrogate._CHAR_PT#

3.9

chemparseplot.plot.surrogate._board_axes(boards, labels_pad_in=None)#

One axes per board, top-aligned, with the same row pitch and bar size.

The height of a panel is its row count times a fixed pitch, so a board with fewer rows leaves no empty rows in its frame.

chemparseplot.plot.surrogate._board_title(b: chemparseplot.parse.surrogate.cases.CaseBoard) → str#
chemparseplot.plot.surrogate.plot_cases_calls(boards: collections.abc.Sequence[chemparseplot.parse.surrogate.cases.CaseBoard]) → matplotlib.figure.Figure#

Potential evaluations per case: search and independent validation, stacked.

One panel per board, one horizontal bar per case in the order given. Teal: search; coral: independent validation; the total sits at the bar end. A case that is not certified is hatched. Baseline markers (CaseBoard.baselines) sit on the case’s row, open where the method did not converge.

chemparseplot.plot.surrogate._wall_tick(wall: float, sd: float | None) → str#

Bar label. With a deviation, both numbers share its printed place.

The place is two significant figures of the deviation, and at most hundredths. Without one, a time of at least ten seconds is an integer.

chemparseplot.plot.surrogate.plot_cases_wall(boards: collections.abc.Sequence[chemparseplot.parse.surrogate.cases.CaseBoard], *, reference_label: str = 'reference') → matplotlib.figure.Figure#

Wall time per case on a log axis, one bar each, with its value.

A thin vertical tick on the case’s row marks reference_wall_s when the table has one (the value then sits inside the bar end, off the tick); reference_label names it in the legend. wall_sd draws a horizontal error bar, the sample standard deviation of repeated runs, and the label writes that deviation beside the time. The axis spans half a decade below the fastest and a third above the slowest case. Not-certified cases are hatched.