From: Jochen V. <vo...@se...> - 2004-11-04 12:05:31
|
Hello John, On Wed, Nov 03, 2004 at 04:14:55PM -0600, John Hunter wrote: > >>>>> "Jochen" =3D=3D Jochen Voss <vo...@se...> writes: > Jochen> The the figure actually used as an Artist somewhere? What > Jochen> would break if it would not be derived from Artist? >=20 > In a couple of places - in the call to set_transform in > Figure._set_artist_props ... I see. > ... and when FigureCanvas calls figure.draw(renderer). This is different, isn't it? FigureCanvas calls figure.draw(renderer) only calls this with proper figures and never with other Artists. So inheritance is not used here. > ... The Artist hierarchy are basically all the things that implement > draw(renderer). ... Ok! This makes it look ok to me. I am just in the process of understanding how the internals of matplotlib work. > Jochen> I tried the patch >=20 > I didn't test this - did it pass backend_driver? It seemed to work fine, but maybe I just didn't spot the problems. Now I can't really understand how the set_transform calls in Figure._set_artist_props could possible have worked. Thank you very much, Jochen --=20 http://seehuhn.de/ |