On Fri, Jul 6, 2012 at 5:39 PM, Chao YUE <chaoyuejoy@gmail.com> wrote:
dear all,

I want to build a 5X3 subplots matrix that I want the xaxis is shared only on the same column and yaxis shared only on the same row.
While using plt.subplots(5,3,sharex=True, sharey=True) will put all subplots as both shared xaxis and yaxis.

The other option is to do like this to create 2X2 subplots with desired feature, Yet I guess doing the same for 5X3 subplots could be tedious?
Does anyone has some idea?

Thanks a lot et cheers,



Such a feature is not in any of the current releases, (although it can be done manually, but it is tedious).  However, in the development branch, the subplots() function now accepts strings of "row", "col", "all", or "none" for both the sharex and sharey kwargs.  So, for you, you can call subplots() with sharex="col" and sharey="row" to get what you want.  This will also have a side-effect of having the y-tick labels show up only on the first column and the x-tick labels show up only on the last row.  This is a new feature, so bug reports would be welcomed!

Ben Root