1

I want to change my font for matplotlib texts on figures to Arial Narrow, but unfortunately I always get the following error message:

py:1316: UserWarning: findfont: Font family ['Arial Narrow'] not found. Falling back to DejaVu Sans

I also wrote the following in my code, even though I use it, it does not work:

from matplotlib import rcParams
rcParams['font.family'] = 'Arial Narrow'

I use Spyder Python 3.6 in Anaconda on Windows 7.

Gergő Barta
  • 139
  • 1
  • 2
  • 8
  • Have you checked if Arial Narrow is in the list of matplotlib's readable font in your environment? (Here is indicated how to do that: https://stackoverflow.com/a/27564040/5405298) – Leonard Feb 25 '18 at 15:46
  • Thanks! I have checked and it does NOT contain 'Arial Narrow'. How can I install it? – Gergő Barta Feb 25 '18 at 15:57
  • Maybe you can find an answer here: https://stackoverflow.com/a/37921026/5405298. The idea is to force matplotlib to rebuild the font list by deleting a file in the `.matplotlibrc` folder. – Leonard Feb 25 '18 at 16:13

0 Answers0