Re: [Matplotlib-users] Extending patches.Rectangle class

2009-12-03 Thread Jorge Scandaliaris
Jae-Joon Lee writes: <...> > > It depends on your mileage. > > However, a patch in matplotlib usually means a closed path. If you add > additional lines, you need to be careful not to mess the filling of > the rectangle. > > I guess it would better to simply use separate artists for additional

Re: [Matplotlib-users] Extending patches.Rectangle class

2009-12-02 Thread Jae-Joon Lee
On Tue, Dec 1, 2009 at 8:48 AM, Jorge Scandaliaris wrote: > How difficult would be to extend the Rectangle class so besides its permimeter > it draws lines showing halfs or thirds of the width and height? It depends on your mileage. However, a patch in matplotlib usually means a closed path. If

[Matplotlib-users] Extending patches.Rectangle class

2009-12-01 Thread Jorge Scandaliaris
Hi, How difficult would be to extend the Rectangle class so besides its permimeter it draws lines showing halfs or thirds of the width and height? I use rectangle to mark the locations of moving objects in sequences of images, and such lines would make the job easier. Thanks, Jorge