On Wed, May 13, 2009 at 7:50 PM, GoogleWind <goo...@16...> wrote:
>
> hello everyone,
>
> I have use maplotlib to show an image. the image is a map.
> The problem is when I zoom in the map, The extent of self.ax changes to fix
> my selected. However, I want the extent of self.ax stand unchanged. Only the
> map's extent changed. Is there any suggestion?
>
> self.fig = Figure((8.8,6),facecolor='w')
> self.canvas= FigureCanvasWxAgg(frame, -1, self.fig)
> self.ax= self.fig.add_axes([0.17,0.15,0.7,0.7],axisbg='#ffffff')
> self.im = self.ax.imshow(Zm, norm = colors.Normalize(vmin =
> valueSet[0], vmax = valueSet[1], clip =
> False),cmap=palette,interpolation='nearest')
I'm not 100% what problem you are describing, but my hunch is that you
want aspect='equal' as a kwarg to imshow.
JDH
|