plt のメモリについて

tick で実際のメモリ、ticks_label で表示するメモリについて、制御する。

yticks = 2 ** np.arange(0, 5)

plt.yticks(np.log2(yticks))
plt.yticklabels(yticks)