问题记录:'AxesSubplot' object does not support indexing
绘制单行或者单列的图表时,不支持索引
例:
fig, ax = plt.subplots(3, 1)
ax[0][0].plot(list,)
ax[1][0].plot(list,)
...
TypeError: 'AxesSubplot' object does not support indexing
正确索引方法:
fig, ax = plt.subplots(3, 1)
ax[0].plot(list,)
ax[1].plot(list,)
...