chemparseplot.plot.neb#
Module Contents#
Classes#
Position specification for an inset structure image. |
|
Parameters for Savitzky-Golay smoothing of NEB force profiles. |
|
Normalized ORCA NEB plotting payload. |
|
Declarative surface-fit knobs (TOML-friendly mapping). |
|
The grid |
Functions#
Crop transparent or matte-colored margins from an RGBA image. |
|
Resize an RGBA image to the requested pixel size. |
|
Composite an RGBA image onto a canvas at top-left pixel coordinates. |
|
Renders an ASE Atoms object to a numpy RGBA image array. |
|
Import xyzrender via ensure_import (AUTO_DEPS) or a normal import. |
|
Verify xyzrender is importable (package or ensure_import cache). |
|
Apply a small off-axis rotation to reveal hidden atoms. |
|
Parse ASE-style rotation string into (rx, ry, rz) degrees. |
|
Render an ASE Atoms object to a numpy RGBA array via xyzrender. |
|
Dispatch rendering to the selected backend. |
|
Render an atomic structure via solvis (ball-and-stick with PyVista). |
|
Render via OVITO Python (high-quality off-screen rendering). |
|
Renders a horizontal gallery of atomic structures. |
|
Plots a single structure as an annotation inset. |
|
Plots 1D energy profile with optional spline interpolation. |
|
Hermite (through |
|
Draw one band as a smooth curve, or straight segments when the interpolant is undefined (no forces for Hermite, too few images). |
|
Decimals the major tick labels of |
|
Raise the top of the y range until |
|
NEB energy profile in the journal style of :mod: |
|
Plots 1D eigenvalue profile. |
|
Creates a ‘collar’ of synthetic points around the endpoints. This forces the RBF interpolator to curve upwards around these points, preventing artificial wells (overshooting) where the physics dictates a minimum. |
|
Uses projected gradients to create helper points slightly offset from the path. This effectively tells the RBF interpolator the local slope. |
|
Return indices for evenly spaced surface-fit observations. |
|
Plot the 2D landscape surface using reaction valley projection. |
|
Overlay the colored path line on the landscape. |
|
Overlay MMF (mode-following) refinement peak positions on the landscape. |
|
Overlay a second phase of sampled points on top of the NEB landscape. |
|
Show NEB band evolution across optimization iterations. |
|
Convert NEB values for the active plotted quantity. |
|
Return the canonical label for NEB energy-like axes. |
|
Reuse the full-dataset basis whenever projected overlays need one. |
|
Symmetric |d| half-span for a projected (s, d) landscape. |
|
Draw a high-contrast saddle marker (gold star) on a profile or landscape. |
|
Save plots, cropping unused figure canvas (including strip layouts). |
|
Select profile structures to render as a strip payload. |
|
Build an ordered strip payload for profile plots. |
|
Plot ORCA NEB energy profile from OPI-parsed data. |
|
Plot ORCA NEB energy profile using existing eOn-style plotting. |
|
Plot ORCA NEB 2D landscape using existing eOn-style plotting. |
|
Normalize ORCA NEB inputs for plotting entrypoints. |
|
Return the internal saddle index for a NEB profile, if any. |
|
Annotate the forward barrier on an ORCA NEB profile plot. |
|
Plot reactant/product/saddle markers for ORCA NEB profile-like plots. |
|
Save an ORCA plotting figure with the standard settings. |
Data#
API#
- chemparseplot.plot.neb.log#
‘getLogger(…)’
- class chemparseplot.plot.neb.InsetImagePos#
Position specification for an inset structure image.
Added in version 0.1.0.
- class chemparseplot.plot.neb.SmoothingParams#
Parameters for Savitzky-Golay smoothing of NEB force profiles.
Added in version 0.1.0.
- class chemparseplot.plot.neb._OrcaNebPlotPayload#
Normalized ORCA NEB plotting payload.
- energies: numpy.ndarray#
None
- chemparseplot.plot.neb.MIN_PATH_LENGTH#
1e-06
- chemparseplot.plot.neb.STRIP_IMAGE_ZOOM_SCALE#
0.18
- chemparseplot.plot.neb.INSET_IMAGE_ZOOM_SCALE#
0.45
- chemparseplot.plot.neb._crop_transparent_rgba(img_data: numpy.ndarray, alpha_threshold: float = 0.02, matte_threshold: float = 0.04) numpy.ndarray#
Crop transparent or matte-colored margins from an RGBA image.
- chemparseplot.plot.neb._resize_rgba_image(img_data: numpy.ndarray, target_h: int, target_w: int) numpy.ndarray#
Resize an RGBA image to the requested pixel size.
- chemparseplot.plot.neb._alpha_blit_rgba(canvas: numpy.ndarray, img_data: numpy.ndarray, x0: int, y0: int) None#
Composite an RGBA image onto a canvas at top-left pixel coordinates.
- chemparseplot.plot.neb.render_structure_to_image(atoms, zoom, rotation)#
Renders an ASE Atoms object to a numpy RGBA image array.
Parameters
atoms : ase.Atoms Structure to render. zoom : float Zoom level (used by callers for OffsetImage scaling, not by ASE). rotation : str ASE rotation string, e.g.
"0x,90y,0z".Returns
numpy.ndarray RGBA image array with shape
(H, W, 4)and float dtype.Added in version 0.1.0.
- chemparseplot.plot.neb._import_xyzrender()#
Import xyzrender via ensure_import (AUTO_DEPS) or a normal import.
Prefer the Python API over a PATH binary. Matches the suite lazy-dep model (rgpycrumbs
ensure_import/RGPYCRUMBS_AUTO_DEPS).
- chemparseplot.plot.neb._check_xyzrender()#
Verify xyzrender is importable (package or ensure_import cache).
Raises
RuntimeError If xyzrender cannot be imported, with install instructions.
- chemparseplot.plot.neb._apply_perspective_tilt(atoms, tilt_deg=8.0)#
Apply a small off-axis rotation to reveal hidden atoms.
Uses Rodrigues formula to rotate around an axis perpendicular to the viewing direction. This prevents atoms from occluding each other in orthographic projection without significantly distorting the view.
Parameters
atoms : ase.Atoms Structure to tilt (modified in place). tilt_deg : float Tilt angle in degrees. 5-10 is usually enough.
- chemparseplot.plot.neb._parse_rotation_angles(rotation_str)#
Parse ASE-style rotation string into (rx, ry, rz) degrees.
E.g.
"0x,90y,0z"->(0, 90, 0).
- chemparseplot.plot.neb._render_xyzrender(atoms, rotation='auto', canvas_size=400, config='paton')#
Render an ASE Atoms object to a numpy RGBA array via xyzrender.
Uses the Python API (
xyzrender.render), staged throughensure_importwhenRGPYCRUMBS_AUTO_DEPS=1— not a PATH binary.Parameters
atoms : ase.Atoms Structure to render. rotation : str
"auto"(default) uses xyzrender’s auto-orientation. Any ASE-style string (e.g."0x,90y,0z") disables auto-orient and pre-rotates the atoms. canvas_size : int Output image width/height in pixels.Returns
numpy.ndarray RGBA image array with shape
(H, W, 4)and float dtype.
- chemparseplot.plot.neb._render_atoms(atoms, renderer, zoom, rotation, canvas_size=400, perspective_tilt=0.0, xyzrender_config='paton')#
Dispatch rendering to the selected backend.
All backends return a numpy RGBA image array.
Parameters
rotation : str ASE-style rotation string (e.g.
"0x,90y,0z"). Applied uniformly across all backends. perspective_tilt : float Small off-axis tilt in degrees to reveal occluded atoms. 0 disables. 5-10 is usually enough. xyzrender_config : str xyzrender preset name (paton, bubble, flat, tube, wire, skeletal).
- chemparseplot.plot.neb._render_solvis(atoms, rotation='0x,90y,0z', canvas_size=400)#
Render an atomic structure via solvis (ball-and-stick with PyVista).
Requires the
solvis-toolspackage (pip install solvis-tools).Parameters
atoms : ase.Atoms Atomic structure to render. rotation : str, optional Rotation string in the format
"RXx,RYy,RZz"(degrees). Default is"0x,90y,0z". canvas_size : int, optional Width and height of the rendered image in pixels. Default is 400.Returns
numpy.ndarray RGBA image array.
- chemparseplot.plot.neb._render_ovito(atoms, rotation='0x,90y,0z', canvas_size=400)#
Render via OVITO Python (high-quality off-screen rendering).
Requires:
pip install ovitoReturns
numpy.ndarray RGBA image array.
- chemparseplot.plot.neb.plot_structure_strip(ax, atoms_list, labels=None, zoom=0.3, rotation='0x,90y,0z', theme_color='black', max_cols=6, renderer='xyzrender', col_spacing=1.5, show_dividers=False, xyzrender_config='paton', divider_color='gray', divider_style='--', perspective_tilt=0.0, max_display_height_px: float | None = None, width_fill_fraction=0.82, prefer_single_row: bool = True, label_ax=None, label_fontsize: float | None = None, label_padding_px: float = 3.0) Any#
Renders a horizontal gallery of atomic structures.
Parameters
renderer : str Rendering backend:
"ase","xyzrender","solvis", or"ovito". col_spacing : float Horizontal spacing between structure images in data units. show_dividers : bool Draw vertical divider lines between structures. divider_color : str Color for divider lines. divider_style : str Linestyle for divider lines (e.g."--","-",":"). prefer_single_row : bool If True (default), pack up to 16 structures in one row. If False, honourmax_colsso e.g. 12 images withmax_cols=6become two rows of larger molecules. label_ax : matplotlib.axes.Axes or None Optional caption-only axis. When supplied, structure images use the full height ofaxand labels are placed inlabel_axat matching normalized column and row positions. label_fontsize : float or None Label font size in points. When omitted, an adaptive size is used. label_padding_px : float Inset in pixels from the bottom of the row. The caption usesva="bottom", so a larger value moves it toward the structure image. Ignored whenlabel_axis set.Added in version 0.1.0.
Changed in version 1.2.0: Added the renderer parameter.
Changed in version 1.5.0: Added col_spacing, show_dividers, divider_color, divider_style parameters. Added
"solvis"and"ovito"renderer backends.
- chemparseplot.plot.neb.plot_structure_inset(ax, atoms, x, y, xybox, rad, zoom=0.4, rotation='0x,90y,0z', arrow_props=None, renderer='xyzrender', perspective_tilt=0.0, xyzrender_config='paton') Any#
Plots a single structure as an annotation inset.
Parameters
renderer : str Rendering backend:
"ase"(default) or"xyzrender".Added in version 0.1.0.
Changed in version 1.2.0: Added the renderer parameter.
- chemparseplot.plot.neb.plot_energy_path(ax, rc, energy, f_para, color, alpha, zorder, method='hermite', smoothing=None, label=None, *, markersize: float | None = None, markeredgewidth: float | None = None, markeredgecolor: matplotlib.typing.ColorType | None = None, samples: int | None = None) Any#
Plots 1D energy profile with optional spline interpolation.
Parameters
method :
"hermite"— cubic Hermite using-f_paraas dE/d(rc) (path-length coordinates only; meaningless whenrcis image index)."spline"— cubic spline through the energy points."none"— markers joined by straight segments only (no interpolant). markersize, markeredgewidth : Image marker size and edge width in points; default thelines.markersizeandlines.markeredgewidthrcParams, which :func:chemparseplot.plot.journal.apply_stylesets. markeredgecolor : Marker edge colour, default the line colour. The background colour keeps neighbouring markers apart. samples : Points on the interpolant. The default is one per pixel across the figure atsavefig.dpi, or at the figure’s dpi when that is"figure", plus one.Added in version 0.1.0.
Changed in version 1.14.0: Marker size and edge width follow the rcParams; added markersize, markeredgewidth, markeredgecolor and samples. The number of samples follows
savefig.dpi; it was 300.
- chemparseplot.plot.neb._energy_interpolant(rc, energy, deriv, method, smoothing, samples)#
Hermite (through
deriv= dE/drc) or cubic-spline curve through the images,samplespoints long.smoothingNone usesderivas given.
- chemparseplot.plot.neb._SPLINE_MIN_POINTS#
4
- chemparseplot.plot.neb._band_curve(ax, rc, energy, f_para, *, method, smoothing, samples, **line_kw)#
Draw one band as a smooth curve, or straight segments when the interpolant is undefined (no forces for Hermite, too few images).
- chemparseplot.plot.neb._tick_decimals(axis) int#
Decimals the major tick labels of
axisshow, in data units.
- chemparseplot.plot.neb._fit_above(ax, annotation) None#
Raise the top of the y range until
annotation, placed above its data point, ends inside the axes.
- chemparseplot.plot.neb.plot_neb_profile(rc: numpy.typing.ArrayLike, energy: numpy.typing.ArrayLike, f_para: numpy.typing.ArrayLike | None = None, *, history: collections.abc.Sequence | None = None, iterations: collections.abc.Sequence[int] | None = None, reference: float | None = None, reference_label: str = 'Reference', ax: matplotlib.axes.Axes | None = None, journal: str | chemparseplot.plot.journal.JournalPreset | None = None, columns: str = 'single', method: str = 'hermite', smoothing: chemparseplot.plot.neb.SmoothingParams | None = None, color: matplotlib.typing.ColorType | None = None, label: str | None = None, energy_unit: str = 'eV', xlabel: str = 'Path length (Å)', ylabel: str | None = None, barrier: bool = True) matplotlib.figure.Figure#
NEB energy profile in the journal style of :mod:
chemparseplot.plot.journal.The band is a wide line in the first Ruhi line colour through its images, drawn as markers outlined in the background colour. The curve is a cubic Hermite interpolant whose slopes are minus the forces along the path (
-f_para), or a cubic spline when no forces are given;smoothingapplies a Savitzky-Golay filter to the forces first (default: forces as computed). It is sampled once per output pixel at the journal’s raster resolution, so no segment shows.Earlier bands (
history, oldest first, each(rc, energy)or(rc, energy, f_para)) are narrow lines coloured from light to dark along the part ofruhi_seqthat reaches the WCAG 3:1 contrast for graphics, with an iteration colour bar (iterations, default 0, 1, …). The barrier, the highest image above the first, is written above the peak with one decimal more than the energy ticks show, since the axis already gives the reader the coarser digits, on a halo of the background colour so earlier bands do not cross it.referencedraws a dashed (ISO 128-2 type 02) line at that energy with a direct label, for a saddle energy known by other means.Without
axa figure onecolumnsofjournalwide is created and the journal style goes into the global rcParams, as- Func:
~chemparseplot.plot.journal.journal_figuredoes, so the figure saves in that style; withaxthe caller’s rcParams are kept and the journal only sets line and marker sizes.
Returns the figure.
Added in version 1.14.0.
- chemparseplot.plot.neb.plot_eigenvalue_path(ax, rc, eigenvalue, color, alpha, zorder, grid_color='white')#
Plots 1D eigenvalue profile.
Added in version 0.1.0.
- chemparseplot.plot.neb._augment_minima_points(rmsd_r, rmsd_p, z_data, radius=0.01, d_e=0.02, num_pts=12)#
Creates a ‘collar’ of synthetic points around the endpoints. This forces the RBF interpolator to curve upwards around these points, preventing artificial wells (overshooting) where the physics dictates a minimum.
- chemparseplot.plot.neb._augment_with_gradients(r, p, z, gr, gp, epsilon=0.05)#
Uses projected gradients to create helper points slightly offset from the path. This effectively tells the RBF interpolator the local slope.
Creates 4 helper points for every real point: (r +/- eps, p) and (r, p +/- eps)
- chemparseplot.plot.neb.surface_fit_indices(n: int, max_points: int) numpy.ndarray#
Return indices for evenly spaced surface-fit observations.
Always includes the first and last indices when
n > 0. Whenn <= max_points, returnsarange(n). Used by- Func:
plot_landscape_surfacewhenauto_thinis enabled.
Added in version 1.9.9.
- class chemparseplot.plot.neb.SurfaceFitConfig#
Declarative surface-fit knobs (TOML-friendly mapping).
Prefer this over growing positional/flag lists. Key names match rgpycrumbs eOn plot TOML (
[shared]/[min]/[neb])::auto_thin = false max_surface_points = 64
Defaults keep historical behaviour (no thinning).
Added in version 1.9.10.
- classmethod from_mapping(data: collections.abc.Mapping[str, Any] | None) chemparseplot.plot.neb.SurfaceFitConfig#
Build from a TOML table or plain dict (unknown keys ignored).
- class chemparseplot.plot.neb.LandscapeSurface#
The grid
plot_landscape_surfaceevaluated: coordinates and the relative variance (0 smallest on the grid, 1 largest; None when flat).- x: numpy.ndarray#
None
- y: numpy.ndarray#
None
- chemparseplot.plot.neb.plot_landscape_surface(ax, rmsd_r, rmsd_p, grad_r, grad_p, z_data, step_data=None, method='grad_matern', rbf_smooth=None, cmap='ruhi_diverging', show_pts=True, variance_threshold=0.05, project_path=True, extra_points=None, n_inducing=None, xlim=None, ylim=None, basis=None, auto_thin: bool = False, max_surface_points: int = 64, surface_fit: chemparseplot.plot.neb.SurfaceFitConfig | collections.abc.Mapping[str, Any] | None = None, variance_label: collections.abc.Callable[[float], str] | None = None, show_variance_contours: bool = True, fade_variance_above: float | None = None, fade_distance_above: float | None = None) Any#
Plot the 2D landscape surface using reaction valley projection.
If project_path evaluates to True, the plot maps into reaction valley coordinates (Progress \(s\) vs Orthogonal Distance \(d\)).
Implements 2D reaction valley projection method from cite:[goswami2026valley]. The method rotates the RMSD plane into reaction progress and orthogonal deviation coordinates.
Parameters
basis : ProjectionBasis or None Pre-computed projection basis. When provided, this basis is used instead of computing one from
rmsd_r/rmsd_p. Pass this when the surface data is a subset (e.g. last step only) but the basis should come from the full path. auto_thin : bool, default False If True and the number of observations exceedsmax_surface_points, subsample for the GP surface fit only (first/last + evenly spaced intermediates). Viewport and scatter points still use the full cloud. Off by default so callers must opt in (dense eOn min movies can otherwise yield non-finite grids). max_surface_points : int, default 64 Cap on fit observations whenauto_thinis True. variance_label : callable, optional Text of a variance contour label from its level; default$\sigma^2 = $and the value (mathtext). Pass a plain-text formatter when the figure must embed a single font family. show_variance_contours : bool, default True Draw and label the dashed predictive-variance contours. Disabling them does not disablefade_variance_aboveor variance calculation. fade_variance_above : float, optional Relative variance level in (0, 1) (the same scale as the labelled contours: 0 the smallest variance on the grid, 1 the largest). Where the relative variance is above it the surface is faded to the background, so the plot does not show a confident surface where the model has no data. Default None: no fading (the NEB behaviour). fade_distance_above : float, optional Distance in the plotted coordinate units. Surface cells farther than this from every observation are faded to the background. This gives a deterministic data-support mask independent of model uncertainty. surface_fit : SurfaceFitConfig or mapping, optional TOML-friendly config object. When given, overrides auto_thin and max_surface_points (prefer this over ad-hoc kwargs).Added in version 0.1.0.
Changed in version 1.1.0: Added the project_path parameter for reaction-valley coordinate projection.
Added in version 1.9.9: Added auto_thin and max_surface_points.
Added in version 1.9.10: Added surface_fit (:class:
SurfaceFitConfig/ mapping).Changed in version 1.14.0: The default cmap is
ruhi_diverging. Release 1.14.0 had pointed it atruhi_seq.
- chemparseplot.plot.neb.plot_landscape_path_overlay(ax, r, p, z, cmap, z_label, project_path=True, all_r=None, all_p=None, all_z=None, basis=None) Any#
Overlay the colored path line on the landscape.
Mapped to the chosen coordinate basis. When
all_r/all_p/all_zarrays are provided (all NEB iterations), a triangulated filled contour is drawn as the background so the landscape is never empty.Added in version 0.1.0.
Changed in version 1.1.0: Added the project_path parameter for reaction-valley coordinate projection.
Changed in version 1.6.0: Added all_r, all_p, all_z for triangulated background contours.
- chemparseplot.plot.neb.plot_mmf_peaks_overlay(ax, peak_rmsd_r, peak_rmsd_p, peak_energies, project_path=True, path_rmsd_r=None, path_rmsd_p=None, cmap: str = 'ruhi_diverging') None#
Overlay MMF (mode-following) refinement peak positions on the landscape.
Used for OCI-NEB/RONEB visualization to show where dimer refinement was applied along the band. Peaks are coloured by energy with
cmap, by default theruhi_divergingmap of the landscape itself.Parameters
ax Matplotlib axes (same as the landscape plot). peak_rmsd_r, peak_rmsd_p RMSD coordinates of MMF peak structures. peak_energies Energy values at the peak positions. project_path Whether to project into (s, d) coordinates. path_rmsd_r, path_rmsd_p RMSD arrays of the main NEB path, used to define the projection basis. Required when
project_path=True. If None, falls back to computing basis from the peaks themselves (less accurate).Added in version 1.5.0.
Changed in version 1.14.0: Added cmap. The default is
ruhi_diverging. Release 1.14.0 had pointed it atruhi_seq.
- chemparseplot.plot.neb.plot_phase_points_overlay(ax, rmsd_r, rmsd_p, *, project_path=True, path_rmsd_r=None, path_rmsd_p=None, phase_color='#FF8F00', label=None) None#
Overlay a second phase of sampled points on top of the NEB landscape.
This is intended for OCI-NEB / RONEB refinement trajectories, where the main NEB band points are already shown as dark background samples and the dimer/MMF phase needs a distinct inner marker to remain legible.
- chemparseplot.plot.neb.plot_neb_evolution(ax, step_rmsd_r_list: list[numpy.ndarray], step_rmsd_p_list: list[numpy.ndarray], project_path=True, cmap=None) None#
Show NEB band evolution across optimization iterations.
Older bands are drawn with lower opacity; the final band is most visible. All bands are projected using the final band’s basis so they share one consistent coordinate frame.
Parameters
ax Matplotlib axes. step_rmsd_r_list List of RMSD-R arrays, one per NEB iteration. step_rmsd_p_list List of RMSD-P arrays, one per NEB iteration. project_path Whether to project into (s, d) coordinates. cmap Colormap for fading bands (older = lighter). Default: the entries of
ruhi_seqthat reach the WCAG 3:1 graphics contrast on the axes background, light to dark.Added in version 1.5.0.
Changed in version 1.14.0: The default cmap changed from
Bluesto contrast-limitedruhi_seq.
- chemparseplot.plot.neb.convert_neb_values(values, plot_mode: str, energy_unit: str)#
Convert NEB values for the active plotted quantity.
- chemparseplot.plot.neb.default_neb_ylabel(plot_mode: str, energy_unit: str) str#
Return the canonical label for NEB energy-like axes.
- chemparseplot.plot.neb.landscape_projection_basis(global_basis, final_r, final_p)#
Reuse the full-dataset basis whenever projected overlays need one.
- chemparseplot.plot.neb.landscape_half_span(x_limits, final_r, final_p, additional_atoms_data, global_basis, *, path_pad: float = 1.15, min_half: float = 0.02, equal_metric: bool = True)#
Symmetric |d| half-span for a projected (s, d) landscape.
With
equal_metric=True(default), the half-span is at least half the s window so thatΔs = Δdandset_aspect('equal')yields a square panel where 1 Å of progress matches 1 Å of orthogonal deviation (same RMSD metric). Path/overlay markers still expand the span when they exceed that.
- chemparseplot.plot.neb.mark_saddle_point(ax, x, y, *, label: str = 'SP', font_size: float = 12.0, vline: bool = False, annotate: bool = True)#
Draw a high-contrast saddle marker (gold star) on a profile or landscape.
- chemparseplot.plot.neb.save_plot(output_file, dpi, *, has_strip)#
Save plots, cropping unused figure canvas (including strip layouts).
- chemparseplot.plot.neb.profile_structure_indices(atoms_list, y_values, plot_structures, plot_mode)#
Select profile structures to render as a strip payload.
- chemparseplot.plot.neb.profile_strip_payload(atoms_list, x_values, y_values, plot_structures, plot_mode)#
Build an ordered strip payload for profile plots.
- chemparseplot.plot.neb.plot_orca_neb_profile(neb_data: collections.abc.Mapping[str, Any] | chemparseplot.parse.types.OrcaNebResult, output: pathlib.Path, *, width: float = 7.0, height: float = 5.0, dpi: int = 200, energy_unit: str = 'eV') None#
Plot ORCA NEB energy profile from OPI-parsed data.
Parameters
neb_data Mapping-like ORCA NEB result from parse_orca_neb() output Output file path width, height Figure dimensions in inches dpi Output resolution
Example
from chemparseplot.parse.orca.neb import parse_orca_neb from chemparseplot.plot.neb import plot_orca_neb_profile data = parse_orca_neb(“job”, Path(“calc”)) plot_orca_neb_profile(data, “neb_profile.pdf”)
- chemparseplot.plot.neb.plot_orca_neb_energy_profile(neb_data: collections.abc.Mapping[str, Any] | chemparseplot.parse.types.OrcaNebResult, output: pathlib.Path, *, width: float = 5.37, height: float = 5.37, dpi: int = 200, method: str = 'hermite', smoothing: Any = None, energy_unit: str = 'eV') None#
Plot ORCA NEB energy profile using existing eOn-style plotting.
Creates publication-quality energy profile similar to eOn NEB plots. Uses the same plotting functions as eOn NEB for consistency.
Parameters
neb_data Mapping-like ORCA NEB result from parse_orca_neb() output Output file path width, height Figure dimensions in inches dpi Output resolution method Interpolation method: ‘hermite’ or ‘spline’ smoothing Smoothing parameters
Example
from chemparseplot.parse.orca.neb import parse_orca_neb from chemparseplot.plot.neb import plot_orca_neb_energy_profile data = parse_orca_neb(“job”, Path(“calc”)) plot_orca_neb_energy_profile(data, “orca_neb_profile.pdf”)
- chemparseplot.plot.neb.plot_orca_neb_landscape(neb_data: collections.abc.Mapping[str, Any] | chemparseplot.parse.types.OrcaNebResult, output: pathlib.Path, *, width: float = 5.37, height: float = 5.37, dpi: int = 200, method: str = 'grad_matern', project_path: bool = True, energy_unit: str = 'eV') None#
Plot ORCA NEB 2D landscape using existing eOn-style plotting.
Creates publication-quality landscape plot similar to eOn NEB plots. Uses the same plotting functions as eOn NEB for consistency.
Parameters
neb_data Mapping-like ORCA NEB result from parse_orca_neb() output Output file path width, height Figure dimensions in inches dpi Output resolution method Surface interpolation method project_path Whether to project into reaction valley coordinates
Example
from chemparseplot.parse.orca.neb import parse_orca_neb from chemparseplot.plot.neb import plot_orca_neb_landscape data = parse_orca_neb(“job”, Path(“calc”)) plot_orca_neb_landscape(data, “orca_neb_landscape.pdf”)
- chemparseplot.plot.neb._normalize_orca_neb_plot_payload(neb_data: collections.abc.Mapping[str, Any] | chemparseplot.parse.types.OrcaNebResult, energy_unit: str) chemparseplot.plot.neb._OrcaNebPlotPayload#
Normalize ORCA NEB inputs for plotting entrypoints.
- chemparseplot.plot.neb._orca_saddle_index(energies: numpy.ndarray) int | None#
Return the internal saddle index for a NEB profile, if any.
- chemparseplot.plot.neb._annotate_orca_barrier(ax, *, x: float, y: float, barrier_forward: float | None, energy_unit: str, dx: float, dy: float, use_math_text: bool = False, zorder: int | None = None) None#
Annotate the forward barrier on an ORCA NEB profile plot.
- chemparseplot.plot.neb._plot_orca_profile_keypoints(ax, *, x_values: numpy.ndarray, energies: numpy.ndarray, payload: chemparseplot.plot.neb._OrcaNebPlotPayload, energy_unit: str, reactant_markersize: float, product_markersize: float, saddle_markersize: float, barrier_dx: float, barrier_dy: float, use_math_text: bool = False, zorder: int | None = None, barrier_zorder: int | None = None) int | None#
Plot reactant/product/saddle markers for ORCA NEB profile-like plots.
- chemparseplot.plot.neb._save_orca_figure(fig, output: pathlib.Path, *, dpi: int) None#
Save an ORCA plotting figure with the standard settings.