python でグラフを作成するとき、日本語を利用する方法のメモ書きです。 matplotlib、 seabornを使ってグラフを作成すると日本語が文字化けし表示できないときは、 matplotlibが使用するフォントを変更 すればよい。 一番簡単な方法 japanize_matplotlib を、import する ...
上記の記事を読んでつまづいたところのメモ。 pyplotはグラフなんかを表示するためのモジュール。 なんとなくは知ってるけど使いこなせてはいないので、改めて使い方を確認。 matplotlib.pyplotをインポート import matplotlib.pyplot as plt pyplotのインポート。 みたい ...
get_yticks may return more ticks than are shown (for some historical reasons, some performance, and some good reasons). When you pass the tick locations to the second axis it looks at the ...
#!/usr/bin/python3 import matplotlib import matplotlib.pyplot as plt import numpy as np fig = matplotlib.pyplot.figure(figsize=(7,4), dpi=96, facecolor='#eeeeee ...