catalight.analysis.run_plot_comparison.main

catalight.analysis.run_plot_comparison.main(file_list, data_labels, reactant, target_molecule, plot_XandS, plot_XvsS, figsize=(6.5, 4.5))

Plot multi-experiment comparison.

Parameters:
  • file_list (list of str) – List of file paths to experiment folders then used to initiate experiment objects and calculate conversion and selectivity.

  • data_labels (list of str) – List of data labels used for generating plot legends.

  • 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_molecule to use when calculating selectivity. Must match what exists in the calibration file exactly.

  • plot_XandS (bool) – True plots comparison plots of conversion and selectivity individually as a function of the independent variable. Ind. Var. should be the same between all provided values.

  • plot_XvsS (bool) – True plots plot selectivity as a function of conversion for all provided experiments on one plot.

  • figsize (tuple, optional) – Desired size of output figure in inches (x,y), Default is (6.5, 4.5). figsize suggestions: 1/2 slide = (6.5, 4.5); 1/6 slide = (4.35, 3.25); 1/4 slide = (5, 3.65); Full slide = (9, 6.65);

Returns:

  • tuple(tuple, tuple) – ((figX, axX), (figS, axS)) if plot_XandS == True, returns fig and ax handles for two plots

  • matplotlib.figure.Figure – if plot_XvsS == True, returns fig handle for selectivity vs conversion plot

  • matplotlib.axes._axes.Axes – if plot_XvsS == True, returns ax handle for selectivity vs conversion plot