Closed ExcaliburZero closed 7 years ago
This issue can also occur in other similar cases, such as creating variable importance plots with lots of variables that have long names.
Thanks for pointing this out! I've fixed it in 0.2.7
just released now!
You can now do plot_confusion_matrix(..., x_tick_rotation=90)
Thanks! It works great now.
When you create a confusion matrix plot for a classification problem that has a lot of categories with long names, the names for the "Predicted label" axis can overlap, causing the axis to become unreadable. Even using large dimensions for the
figsize
parameter isn't enough in some cases.Here is an example.
Perhaps there could be a new optional parameter added to allow the labels on the "Predicted label" axis to be rotated 90 degrees in order to make them easier to read.