Я видел на Stackoverflow , что некоторые люди спрашивали, как сделать так, чтобы линии сетки отображались между субплотами.
Однако в matplotlib 2.1.1
у меня это по умолчанию - и яна самом деле это не нужно.
n_cols = 2 # or 1
fig,axes = plt.subplots(3, n_cols, sharex='all', sharey='row')
axes = axes.reshape((3,n_cols));
for input in inputs:
ax1 = axes[0,column[input]].plot(...)
ax1.yaxis.grid(True)
ax1.xaxis.grid(True)
ax2 = axes[1,column[input]].plot(...)
ax2.yaxis.grid(True)
ax2.xaxis.grid(True)
ax3 = axes[2,column[input]].plot(...)
ax3.yaxis.grid(True)
ax3.xaxis.grid(True)
plt.show()
Так что да, сетка устанавливается несколько раз на True
для каждой оси.
