2016-01-07から1日間の記事一覧

<Python, matplotlib> 2nd Y axis

2番目のY軸Secondary Y-axisを書く方法。 In [1]: import numpy as np ...: import matplotlib.pyplot as plt ...: x = np.arange(0, 10, 0.1) ...: y1 = 0.05 * x**2 ...: y2 = -1 *y1 ...: ...: fig, ax1 = plt.subplots() ...: ...: ax2 = ax1.twinx() ..…