matplotlibのグラフの設定について 日本語の表示 日本語を表示する場合は、表示するごとにfontproperties = fpをセットする。 from matplotlib.font_manager import FontProperties fp = FontProperties(fname='C:\WINDOWS\Fonts\msgothic.ttc', size=14) plt.title("折れ線グラフ", fontproperties=fp) グラフのタイトル plt.title(str, loc='center') ・表示位置 loc='center' 中央。デフォルト loc='left' 左寄せ loc='right' 右寄せ 表示範囲(変域) ・両軸の表示範囲の取得 xmin, xmax, ymin, ymax = plt.axis() ・両軸の表示範囲の設定 p
![matplotlib グラフの設定 - Remrinのpython攻略日記](https://cdn-ak-scissors.b.st-hatena.com/image/square/06ec69e485baad84dd9993300c7102eb3b2a8717/height=288;version=1;width=512/https%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fr%2Frare_Remrin%2F20170527%2F20170527105105.png)