Globálne písmo Matplotlib sa zmenilo na Times New Roman
Matplotlib Global Font Changed Times New Roman
1. Pridaný kód:
import matplotlib.pyplot as plt plt.rc('font',family='Times New Roman')
2. Ak sa zobrazí chyba:
UserWarning: findfont: Font family [u'Times New Roman'] not found. Falling back to DejaVu Sans (prop.get_family(), self.defaultFamily[fontext]))
3. Riešenie:
sudo apt install msttcorefonts -qq rm ~/.cache/matplotlib -rf
4. Nainštalujte problém msttcorefonts:
https://blog.csdn.net/besidemyself/article/details/7362341
stlačte Tab
Výber kláves ok
Môžete pokračovať v inštalácii