s3 = sin(4 * pi * t)
ax1 = subplot(311)
plot(t, s1)
setp(ax1.get_xticklabels(), fontsize=6)
ax2 = subplot(312, sharex=ax1)
plot(t, s2)
setp(ax2.get_xticklabels(), visible=False)
ax3 = subplot(313, sharex=ax1, sharey=ax1)
plot(t, s3)
xlim(0.01, 5.0)
show()
Plotting two graphs that share an x-axis in matplotlib