force_plot

Contents

force_plot#

autoplex.data.common.utils.force_plot(in_file, out_file, ax, symbol='Si', title='Plot of force', label='force for ')[source]#

Plot the distribution of force components per atom on the output vs the input.

Only plots for the given atom type(s).

Adapted and adjusted from libatoms GAP tutorial page https://libatoms.github.io/GAP/gap_fitting_tutorial.html#make-simple-plots-of-the-energies-and-forces-on-the-EMT-and-GAP-datas

Parameters:
  • in_file (str) – Reference file (e.g. DFT).

  • out_file (str) – MLIP generated data file.

  • ax (Axes) – Panel position in plt.subplots.

  • symbol (str) – Chemical symbol.

  • title (str) – Title of the plot.

  • label (str) – Legend label

Return type:

float