|
From: John H. <jd...@gm...> - 2009-06-02 21:44:35
|
On Tue, Jun 2, 2009 at 4:34 PM, Christopher Barker <Chr...@no...> wrote: >> I think the relevant parts are: >> >> from matplotlib.figure import Figure > >> self.__axl = self.figure.gca() > > I don't know what your issue is, but I thin you will be ell served to > use the OO interface, rather than pylab to write a complex app like this > -- pylab is designed for simple interactive use and quick scripts. In an > app, you want full control. This is the API -- figure is a Figure instance, and gca is a figure method. pyplot.gca is a wrapper around this method. The Figure tracks the "current" axes, but the API doesn't really use this method other than to provide it for pyplot. But the larger point is still well taken -- you should probably be using self.figure.add_subplot(111) here rather than gca. JDH |