0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

matplotlibの文字化け解消(明朝体の追加)

環境

mac
python3

python3付属のvenvで仮想環境を構築

手順

フォントファイルのダウンロード

IPAexフォント

このサイトからipaexm.ttfをダウンロードし、これを
/仮想環境名/lib/python3.6/site-packages/matplotlib/mpl-data/fonts/ttf/に移動

matplotlibrcのコピー

/Users/your_name/.matplotlib/に、

/仮想環境名/lib/python3.6/site-packages/matplotlib/mpl-data/matplotlibrcをコピー

コピーしたmatplotlibrcに追記

font.family : IPAexMincho

上記コードを追加

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
0
Help us understand the problem. What are the problem?