1
내가
these 예제가에 의해 달성 될 수 있음을 보여주는 발견, 그래서 내가
matplotlib
레이블 키릴 문자를 사용하려면
matplotlib.rcdefaults()
matplotlib.rcParams['font.family'] = 'fantasy'
matplotlib.rcParams['font.fantasy'] = 'Times New Roman', 'Ubuntu','Arial','Tahoma','Calibri'
내가 이것을 할 때, 나는 다음과 같은 오류 얻을 :
/usr/local/lib/python2.7/dist-packages/matplotlib/font_manager.py:1279: UserWarning: findfont: Font family [u'fantasy'] not found. Falling back to Bitstream Vera Sans
(prop.get_family(), self.defaultFamily[fontext]))
을
matplotlib
에 prettyplotlib
을 사용하고 있습니다.
나는 그것을 시도주지하지만 '환상'은하지 않습니다 만 'Times New Roman', 'Ubuntu', 'Arial', 'Tahoma', 'Calibri'와 같은 다른 모든 글꼴이있는 글꼴 패밀리 이름입니다. – bozhidarc
그것이 작동하는 솔루션에 감사드립니다! – bozhidarc