[Matplotlib-users] simple example using Basemap in a gtk app??

2010-03-29 Thread Yeates, Mathew C (388D)
Hi Anyone have an example? I found some older examples which no longer work. TIA Mathew For grins The following does not work. I've tried many different variations ... import matplotlib.pyplot as plt import gtk from mpl_toolkits.basemap import Basemap import matplotlib from

Re: [Matplotlib-users] simple example using Basemap in a gtk app??

2010-03-29 Thread Mathew Yeates
I don't understand why the following fails. fig = Figure(figsize=(5,5), dpi=100) canvas = FigureCanvas(fig) ax = fig.add_subplot(111) m = Basemap(resolution='c',projection='cyl',lon_0=0,ax=ax) m.drawcoastlines(color='gray',ax=ax) fails with mpl_toolkits\basemap\__init__.pyc in set_axes_limits

Re: [Matplotlib-users] simple example using Basemap in a gtk app??

2010-03-29 Thread Mathew Yeates
Solved. Sort of. If I run using python it works. It fails if I run using ipython with --pylab. On Mon, Mar 29, 2010 at 3:46 PM, Mathew Yeates mat.yea...@gmail.com wrote: I don't understand why the following fails. fig = Figure(figsize=(5,5), dpi=100) canvas = FigureCanvas(fig) ax =