museotoolbox.charts.PlotConfusionMatrix.add_x_labels

PlotConfusionMatrix.add_x_labels(labels=None, rotation=90, position='top')[source]

Add labels for X.

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

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

  • position (str, default 'top'.) – ‘top’ or ‘bottom’.

Examples

>>> plot.add_text(labels=['Tofu','Houmous'],alpha_zero=0.5,rotation=45)