plot(xdata, ydata1, 'b')
yticks(linspace(ylim()[0], ylim()[1], numSteps))
grid()
subplot(122)
plot(xdata, ydata2, 'g')
yticks(linspace(ylim()[0], ylim()[1], numSteps))
grid()
show()
Matplotlib: multiple y axes, grid lines applied to both?