Confusion matrix messed up with Python 3.7

In Python 3.7 with recent versions of matplotlib and seaborn, the confusion matrix looks like

Confusion matrix