Plotting NEB paths¶
Visualizing NEB Landscapes¶
This tool generates 2D energy landscape plots from NEB calculations using gradient-enhanced surface interpolation.
Method¶
The default grad_imq surface method uses gradient-enhanced Inverse Multiquadric interpolation on 2D RMSD projections.
This approach is described in:
R. Goswami, “Two-dimensional RMSD projections for reaction path visualization and validation,” MethodsX, p. 103851, Mar. 2026, doi: 10.1016/j.mex.2026.103851.
The method projects high-dimensional structures onto 2D RMSD coordinates (reactant distance r vs product distance p),
then fits a smooth surface using energy values and their gradients for enhanced accuracy.
Usage¶
To plot a specific range of neb_*.dat files and save the output:
To show the plot interactively without saving:
python -m rgpycrumbs.cli eon plt-neb --start 280
Troubleshooting¶
“No .dat files found” error¶
**Problem:** The script reports no input files matching the pattern.
**Solution:**
Verify the input pattern matches your files:
ls neb_*.datUse the
--input-patternflag to specify a custom pattern:python -m rgpycrumbs.cli eon plt-neb --input-pattern "path/to/neb_*.dat"
“Index out of range” error¶
**Problem:** The --start or --end indices are outside the available data range.
**Solution:**
Check available iterations:
ls -1 neb_*.dat | wc -lAdjust indices to be within range (0 to N-1 where N is the number of files)
Plot appears empty¶
**Problem:** The plot window opens but shows no data.
**Solution:**
Verify the .dat files contain valid energy data (column 2)
Check that the energy values are not all identical
Try with a smaller range first:
--start 0 --end 5
Force-corrected interpolation fails¶
**Problem:** Hermite spline interpolation produces warnings or errors.
**Solution:**
Ensure you have at least 3 data points
Check that force data (column 4 in .dat) is present
The script falls back to raw lines if spline fails - this is expected behavior
API Reference¶
For developer details and source code see
rgpycrumbs.eon.plt_neb.