Remrinのpython攻略日記
id:rare_Remrin
matplotlib グラフの設定
matplotlibのグラフの設定について 日本語の表示 日本語を表示する場合は、表示するごとにfontproperties = fpをセットする。 from matplotlib.font_manager import FontProperties fp = FontProperties(fname='C:\WINDOWS\Fonts\msgothic.ttc', size=14) plt.title("折れ線グラフ", fontproperties=fp) グラフのタイトル …