reiinakano / scikit-plot

An intuitive library to add plotting functionality to scikit-learn objects.
MIT License
2.43k stars 284 forks source link

The True label displays abnormal #103

Open geeeekDing opened 5 years ago

geeeekDing commented 5 years ago

Dear developer, when i used your function metrics.plot_confusion_matrix I obtain the following result, The true label looks a little ugly. How to do can I fix it? Thanks

bug

lugq1990 commented 5 years ago

As for plot_confusion_matrix has one parameter that could control the size of the plot, you could change the figsize parameter to change the size to fit your desktop(with tuple type like: (12, 8)). I just guess that is caused by the fitting problem with the computer. Have a try.

rbange commented 5 years ago

Hi together,

i experienced the same bug when upgrading matplotlib from 3.1.0 to 3.1.1. I also tried the figsize parameter without any difference, so I installed 3.1.0 and the aspect ratios were fine again. Definitely a bug in matplotlib==3.1.1.