From: Jochen V. <vo...@se...> - 2005-01-23 14:58:13
|
Hello John, On Thu, Jan 20, 2005 at 02:07:26PM -0600, John Hunter wrote: > p =3D Rectangle((1,1),3,3,fill=3DFalse) > ax.add_patch(p) >=20 > your rectangle is in *data coordinates* and it is where it should be > (center at 1,1 and width=3Dheight=3D3). I think this is wrong. The lower-left corner is at (1,1), not the center. At least help(Rectangle) states | __init__(self, xy, width, height, **kwargs) | xy is an x,y tuple lower, left | =20 | width and height are width and height of rectangle | =20 | fill is a boolean indicating whether to fill the rectangle All the best, Jochen --=20 http://seehuhn.de/ |