iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.dataframe_to_figure

iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.dataframe_to_figure#

iqm.benchmarks.compressive_gst.mgst.reporting.figure_gen.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) – A dataframe table containing GST results

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

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

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

Returns:

A figure representing the dataframe.

Return type:

figure