LoginSignup
12
6

More than 3 years have passed since last update.

matplotlibでTimes New Romanが使えないとき (Ubuntu)

Last updated at Posted at 2020-07-27

下記のようなエラーが出る場合.

UserWarning: findfont: Font family ['Times New Roman'] not found. Falling back to DejaVu Sans.
  (prop.get_family(), self.defaultFamily[fontext]))

Terminalから以下のコマンドを入力することで解決する.

$ sudo apt install msttcorefonts -qq
$ rm ~/.cache/matplotlib -rf

ttf-mscorefonts-installerはTabで選択したい位置にカーソルを合わせてEnterを押す.

12
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
6