mantispy.pl.metrics#
- mantispy.pl.metrics(table, ax=None)#
Grouped bars of an
evaluate_correction()table.Takes the table instead of an AnnData because the table already holds every representation side by side.
- Parameters:
table (
DataFrame) – A tidy frame withmetric,representationandvalue, asevaluate_correction()returns. Itsbettercolumn, when present, adds the direction that is an improvement to each tick label.ax (
Axes|None(default:None)) – Axes to draw on, orNonefor a new figure.
- Return type:
- Returns:
The axes drawn on, with one group of bars per metric and one bar per representation.
- Raises:
ValueError – The table holds more than one value for some metric and representation, which cannot be pivoted into a grid.