On 05/27/2010 09:08 AM, Adam Fraser wrote: > Thanks very much, > > I'm getting ValueError: argument must be "box", or "datalim" at > set_adjustable... > > I'm using Matplotlib version 0.98.5.3, do I need to update? >
Yes. Unfortunately, you will need to build from svn. JJ added box-forced in January, and we have not had a release since then. Eric > > On Thu, May 27, 2010 at 2:59 PM, Jae-Joon Lee <lee.j.j...@gmail.com > <mailto:lee.j.j...@gmail.com>> wrote: > > ax1 = subplot(121) > ax2 = subplot(122, sharex=ax1, sharey=ax1) > > ax1.set_adjustable("box-forced") > ax2.set_adjustable("box-forced") > > arr1 = np.arange(100).reshape((10, 10)) > ax1.imshow(arr1) > > arr2 = np.arange(100, 0, -1).reshape((10, 10)) > ax2.imshow(arr2) > > Note the use of set_adjustable("box-forced"). > sharex and sharey does not get along with axes of aspect=1 & > adjustable="box". > > -JJ ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users