On Wed, Nov 19, 2008 at 2:31 PM, Mauro Cavalcanti <[EMAIL PROTECTED]> wrote:
> Greetings. Trying to develop a desktop application for interactive
> mapping using wxPython and Matplotlib, I have been doing some
> experiments with embedding maps generated by the Basemap module into a
> wxPython frame.
You are almost there. You need to create your own axes instance
self.ax = self.figure.add_subplot(111)
and then pass this to your basemap
map = Basemap(ax=self.ax)
after you have issued all your basemap commands, manually force a draw
self.figure.canvas.draw()
and *do not* import pyplot or call pyplot.show()
JDH
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users