1 Jun 2011 06:02
Re: bug in mpl_toolkits.axes_grid1.AxesGrid?
Using AxesGrid does not mean that color scales are shared. It only
takes care of axes placement. And it is your responsibility to sync
colorbars of multiple images.
One option is to use *norm* attribute of images.
norm = matplotlib.colors.Normalize()
for i in range(3):
im = grid[i].imshow(Z, extent=extent, interpolation="nearest",
norm=norm)
im = grid[3].imshow(1000 * Z, extent=extent, interpolation="nearest",
norm=norm)
Regards,
-JJ
On Wed, May 25, 2011 at 11:05 AM, Paul Anton Letnes
<paul.anton.letnes <at> gmail.com> wrote:
> Hi!
>
> I am wondering if there is a bug in:
> mpl_toolkits.axes_grid1.AxesGrid
>
> I am trying to run this example (I am of course working on something else, but I am trying to build a minimal
example of my problem):
> http://matplotlib.sourceforge.net/examples/axes_grid/demo_axes_grid.html
> This would be a very compact and nice way of showing my results, and I am beginning to love it. There is one
thing, though. Given the code attached at the end of this message, the two versions produce figures that
(Continue reading)
RSS Feed