question about the figure class

Hello,

why is figure derived from the Artist class?
This causes some special casing (figure is the
only artist where artist.figure does not point to
the figure).

The the figure actually used as an Artist somewhere?
What would break if it would not be derived from
Artist?

I tried the patch

···

======================================================================
diff -u -r1.5 figure.py
--- figure.py 21 Oct 2004 19:57:50 -0000 1.5
+++ figure.py 2 Nov 2004 19:35:03 -0000
@@ -13,7 +13,7 @@

-class Figure(Artist):
+class Figure:
     
     def __init__(self,
                  figsize = None, # defaults to rc figure.figsize
@@ -27,7 +27,7 @@
         paper size is a w,h tuple in inches
         DPI is dots per inch
         """
- Artist.__init__(self)
+ #Artist.__init__(self)
         #self.set_figure(self)

         if figsize is None : figsize = rcParams['figure.figsize']

and everything still seems to work. Maybe a figure
should be just something which uses artists to do its
work instead of being one itself.

What do you think?
Jochen
--
http://seehuhn.de/