On Wed, May 13, 2009 at 7:50 PM, GoogleWind <googlew...@163.com> 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

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to