From: Jochen V. <vo...@se...> - 2004-11-02 19:37:37
|
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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 @@ =20 =20 =20 -class Figure(Artist): +class Figure: =20 def __init__(self, figsize =3D None, # defaults to rc figure.figsize @@ -27,7 +27,7 @@ paper size is a w,h tuple in inches DPI is dots per inch=20 """ - Artist.__init__(self) + #Artist.__init__(self) #self.set_figure(self) =20 if figsize is None : figsize =3D rcParams['figure.figsize'] =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 --=20 http://seehuhn.de/ |