Re: [Matplotlib-users] embeding basemap in Tk

2009-08-20 Thread marc desmarais
I think I needed to create an "axes". This seems to have solved my problem. a = f.add_subplot(111) map = Basemap(projection='ortho',   lat_0=34.0,   lon_0=-117.3,   resolution='l',   area_thresh=1000,   ax=a) Marc Desmarais Long Beach,

[Matplotlib-users] embeding basemap in Tk

2009-08-19 Thread marc desmarais
How do I embed basemap in Tk?  I tried following the matplotlib example. But the following does not work (the earth does not appear): import matplotlib matplotlib.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import