From: Chao Y. <cha...@gm...> - 2012-07-06 21:40:04
|
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? fig=figure() ax1=fig.add_subplot(221) ax2=fig.add_subplot(222,sharey=ax1) ax3=fig.add_subplot(223,sharex=ax1) ax4=fig.add_subplot(224,sharex=ax2,sharey=ax3) Thanks a lot et cheers, Chao -- *********************************************************************************** Chao YUE Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) UMR 1572 CEA-CNRS-UVSQ Batiment 712 - Pe 119 91191 GIF Sur YVETTE Cedex Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 ************************************************************************************ |