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 met

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 0.

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 im

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 > http://matplotlib.org/mpl_toolkits/axes_grid/users/overview.html#axe

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 wh

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 b

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Benjamin Root
On Fri, Mar 22, 2013 at 12:39 PM, Sterling Smith wrote: > Steven, > > Did you mean to switch back to AxesGrid? I thought you said that it was > fixed with Grid. > > -Sterling > > No, I am saying that your example used "AxesGrid". Use "Grid". Ben Root

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Benjamin Root
On Fri, Mar 22, 2013 at 12:30 PM, 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 pylab as pyl > from mpl_toolkits.axes_grid1 import AxesGrid > > # make some data > xdata = pyl.random(100) *

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 p

Re: [Matplotlib-users] Squashed axes with AxesGrid

2013-03-22 Thread Steven Boada
Thanks JJ! That did fix my problem, but I can't say I understand what the difference is. Why does Axesgrid make them squashed while just Grid works? On Thu Mar 21 22:28:34 2013, Jae-Joon Lee wrote: > It is not clear what your problem is. > AxesGrid implicitly assumes aspect=1 for each axes. So

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 plt