Код: Выделить всё
import matplotlib.pyplot as plt
plt.scatter([1,5], [1,5])
Код: Выделить всё
path_to_miniconda/miniconda3/envs/conda34/lib/python3.4/site-
packages/matplotlib/font_manager.py:1297: UserWarning: findfont: Font family
['sans-serif'] not found. Falling back to DejaVu Sans
(prop.get_family(), self.defaultFamily[fontext]))
Код: Выделить всё
import matplotlib as mpl
fm = mpl.font_manager
fm.get_cachedir()
Код: Выделить всё
mpl.rcParams['font.family'] = ['serif']
mpl.rcParams['font.serif'] = ['Times New Roman']
path_to_miniconda/miniconda3/envs/conda34/lib/python3.4/site-packages/matplotlib/mpl-data/fonts/ttf/< /p>
в нем всего 40 шрифтов типа: DejaVuSerif,DejaVuSans,STIX,cmb, cmt, cmy
Есть идеи, что может происходить и как добавить дополнительные шрифты? Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/420 ... asic-fonts