Aug-03-2018, 03:37 PM
I've download the font 'Times New Roman Italic.ttf' and copied it on
/usr/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/Times New Roman Italic.ttfnow , if I run this frame of code here I get the correct font, but if I try to set :
fontname = os.path.join(matplotlib.get_data_path(), 'fonts', 'ttf', 'Times New Roman Italic.ttf') self.parameters['font'] = fontnamepython swich to DejavuSans give me this message :
/usr/lib/python3.6/site-packages/matplotlib/font_manager.py:1328: UserWarning: findfont: Font family ['/usr/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/Times New Roman Italic.ttf'] not found. Falling back to DejaVu Sans (prop.get_family(), self.defaultFamily[fontext]))why ?? it is so difficult using a italic times new roman on matplotlib ?