> As for not being able to do "isinstance(gca(), 
> matplotlib.axes.SubplotAxes)" -- I'm not sure that's a problem.  It 
> would help to understand the use case, but I suspect you either want 
> "isinstance(gca(), matplotlib.axes.Axes)" or "isinstance(gca(), 
> matplotlib.axes.SubplotBase)".

You may also want to use:

issubclass(an_appropriate_superclass)

instead.

However, given the python's duck-typing semantics, you usually don't 
need to know exactly what class something is -- that's kind of the point 
of dynamic typing.

So what is it you're trying to accomplish? Maybe there is a better way.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to