On Tue, Jun 2, 2009 at 4:34 PM, Christopher Barker
<chris.bar...@noaa.gov> 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

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to