Warm tip: This article is reproduced from stackoverflow.com, please click
Anaconda matplotlib python seaborn

matplotlib, every text is bold after re-installing

发布于 2020-03-29 12:47:34

I had an error with matplotlib so I uninstalled and re-installed it using conda, but now every text is bold:

import matplotlib.pyplot as plt
import seaborn as sns

plt.title('Inputs characters length distribution')
sns.distplot([len(i) for i in dataset['input'].tolist()])
plt.show()

figure

I have:

  • python 3.6.9
  • conda 4.8.1
  • matplotlib 3.1.1
  • seaborn 0.10.0

How can I put them back to normal?

Questioner
François MENTEC
Viewed
86
François MENTEC 2020-01-31 17:22

Fixed by setting the font manually :

plt.rcParams["font.family"] = "Verdana"

I still don't know what caused the issue.