title: ConfusionMatrixDisplay (Scikit-Learn) plot labels out of range
body: <p>The following code plots a confusion matrix:</p>
  <pre><code>from sklearn.metrics import ConfusionMatrixDisplay
  
  confusion_matrix = confusion_matrix(y_true, y_pred)
  target_names = [&quot;aaaaa&quot;, &quot;bbbbbb&quot;, &quot;ccccccc&quot;, &quot;dddddddd&quot;, &quot;eeeeeeeeee&quot;, &quot;ffffffff&quot;, &quot;ggggggggg&quot;]
  disp = ConfusionMatrixDisplay(confusion_matrix=confusion_matrix, display_labels=target_names)
  disp.plot(cmap=plt.cm.Blues, xticks_rotation=45)
  plt.savefig(&quot;conf.png&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/oENij.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oENij.png" alt="Confusion Matrix" /></a></p>
  <p>There are two problems with this plot.</p>
  <ol>
  <li>The y-axis label is cut off (True Label). The x label is cut off too.</li>
  <li>The names are to long for the x-axis.</li>
  </ol>
  <p>To solve the first problem I tried to use <code>poof(bbox_inches='tight')</code> which is unfortunately not available for sklearn.
  In the second case I tried the following solution for <a href="https://stackoverflow.com/questions/66483409/adjust-size-of-confusionmatrixdisplay-scikitlearn">2.</a> which lead to a completely distorted plot.</p>
  <p>All in all I'm struggeling with both problems.</p>