matplotlib/matplotlib — pull request #914 by braingram (2012-05-31 23:52:51+00:00)
Title: more flexible axis sharing for pyplot.subplots

I added some more flexibility to pyplot.subplots to share axes based on row or column

subplots(3, 3, sharey="row") # each row has a shared y axis
subplots(3, 3, sharex="col") # each column has a shared x axis
subplots(3, 3, sharex="all", sharey="all") # same as old sharex=True sharey=True

pyplot.subplots should also be backwards compatible

subplots(3, 3, sharex=True) # 3 x 3 subplots with shared x axis
subplots(3, 3, sharex=True, sharey=False) # same as previous line