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
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.
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
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
...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
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
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
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) *
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
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
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
11 matches
Mail list logo