catalight.analysis.plotting.multiplot_X_and_S

catalight.analysis.plotting.multiplot_X_and_S(results_dict, figsize=(6.5, 4.5))

Separately plot 1) conversion and 2) selectivity for multiple experiments.

Produces two plots:
  1. conversion vs reaction condition

  2. selectivity vs reaction condition

Each plot can have multiple experiments listed. The independent variable should be the same between all experiments provided.

Parameters:
  • results_dict (dict) – Dictionary of results (produced by calculate_X_and_S) in the form {data label: result} where data label is a string with the desired legend label and result is a pandas.DataFrame with column headers [‘Conversion’, ‘Selectivity’, ‘Error’] This function is most easily used in conjunction with DataExtractor such as in the run_plot_comparison script.

  • 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:

two tuples, each containing the (figure, axis) handles for the conversion and selectivity plots, respectively.

Return type:

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