museotoolbox.charts.PlotConfusionMatrix.add_y_labels

PlotConfusionMatrix.add_y_labels(labels=None, rotation=0)[source]

Add labels for Y.

Parameters
  • labels (None) – If labels, best with same len as the X shape.

  • rotation (int, default 90.) – Int, 45 or 90 is best.

Examples

>>> plot.add_y_labels(labels=['Fried','Raw'])