iqm.benchmarks.compressive_gst.gst_analysis.dataframe_to_figure

iqm.benchmarks.compressive_gst.gst_analysis.dataframe_to_figure#

iqm.benchmarks.compressive_gst.gst_analysis.dataframe_to_figure(df: DataFrame, row_labels: List[str] | None = None, col_width: float = 2, fontsize: int = 12) Figure#

Turns a pandas DataFrame into a figure This is needed to conform with the standard file saving routine of QCVV.

Parameters:
  • df (DataFrame) – Pandas DataFrame A dataframe table containing GST results

  • row_labels (List[str] | None) – List[str] The row labels for the dataframe

  • col_width (float) – int Used to control cell width in the table

  • fontsize (int) – int Font size of text/numbers in table cells

Returns:

Matplotlib figure object

A figure representing the dataframe.

Return type:

figure