catalight.analysis.plotting.plot_X_and_S

catalight.analysis.plotting.plot_X_and_S(expt, reactant, target_molecule)

Plot conversion and selectivity vs reaction condition with error.

This method will call calculate_X_and_S() to generate the plotting values.

Parameters:
  • expt (Experiment) – Experiment object which has data and has been analyzed (i.e. has avg_conc.csv etc.)

  • reactant (str) – String identity of reactant molecule to track. Must match what exists in the calibration file exactly.

  • target_molecule (str) – String identity of the target to use when calculating selectivity. Must match what exists in the calibration file exactly.

Returns:

Figure and Axis handle for “X and S” plot

Return type:

tuple(matplotlib.figure.Figure, matplotlib.axes._axes.Axes)