Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-05-17 Thread Jonathan Slavin
Matthias, It's clear to me why apect='equal' doesn't work for you. That option means to give the axes equal scaling -- i.e., the ratio of length in axis units to length in the plot is the same for both axes, so that an axis that goes from 0 to 1 will be twice as long as one that goes from 0 to

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-05-17 Thread Matthias Flor
Thanks for the comment, Jonathan. Yeah, I did not expect aspect='equal' to work but I tried it anyway ;-) Removing the extent argument indeed produces a very nice output but I have not tried yet to also get the tick labels right. Instead, I have now reverted back to matplotlib.pylab's subplots

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-05-16 Thread Matthias Flor
Hi all, it seems that I am experiencing the same problem here with imshow (rather than scatter) and AxesGrid. But calling imshow with aspect=False does not do the trick for me. I am trying to have two imshow subplots next to each other and a single colorbar at the right. The data underlying the

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Sterling Smith
Steven, Did you mean to switch back to AxesGrid? I thought you said that it was fixed with Grid. -Sterling On Mar 22, 2013, at 9:30AM, Steven Boada wrote: Well... I jumped the gun. To better illustrate the problem(s) I am having, I wrote a simple script that doesn't work... import

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Steven Boada
Sorry y'all. I can see the confusion. I started with AxesGrid -- squashed. JJ suggested Grid and that fixes the scaling problems. I realized that using just plain Grid doesn't give me the nice controls over the colorbars (which I would like to have), so I wrote a simple script and emailed it

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Jody Klymak
...and did aspect=False not give you what you want? From what I can see http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html#axes-grid1 contradicts itself, and the chart is correct and the description below incorrect. FWIW, I would expect the default to be False as well, but who

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Steven Boada
Hey Jody et al. Yeah aspect = False does the trick. Thanks for the help trouble shooting. Steven On Fri Mar 22 11:59:45 2013, Jody Klymak wrote: ...and did aspect=False not give you what you want? From what I can see

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-21 Thread Jae-Joon Lee
It is not clear what your problem is. AxesGrid implicitly assumes aspect=1 for each axes. So, I guess your y-limits are smaller (in its span) than x-limits. If you don't want this behavior, there is no need of using the AxesGrid. Rather use Grid, or simply subplots. import matplotlib.pyplot as