The best solution is probably pyplot.subplots()
. You can do like:
fig, axes = pyplot.subplots(nrows=3, ncols=4, sharex=True, sharey=True)
and then only the left and bottom axes will have the labels displayed.
To access each subplot you can get it from axes
like you do in a matrix: ax = axes[i,j]
To control the tick positions you can use:
ax.xaxis.set_tick_position('bottom')
ax.yaxis.set_tick_position('left')
To set an axis label you can do:
ax.set_label_text('Something')