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

2009-12-03 Thread Jorge Scandaliaris
Jae-Joon Lee lee.j.j...@... 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
 lines you want. You may create a container artist for patches and
 lines if you want.
 
 Regards,
 
 -JJ

Thanks, that's sounds like a better way indeed. I'll work in this direction.

Jorge



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


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
jorgesmbox...@yahoo.es 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 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
lines you want. You may create a container artist for patches and
lines if you want.

Regards,

-JJ

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[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


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users