On Mon, Mar 28, 2011 at 1:44 PM, C M <cmpyt...@gmail.com> wrote:

> I need to get the bboxes for time-range bars (matplotlib.patches.Rectangle
> objects) on a bar plot for a custom autoscaling function.
>
> Right now, I get them like this, where rectObj = a bar and bboxes = a list
> of bboxes:
>
> bboxes.append(rectObj.get_path().get_extents())
> print 'bboxes is: ', bboxes
>

OK, I have it... Because I was using the above to get the bbox for a Line2D
object, I didn't realize there was already a method to get the bbox (in data
coordinates) from a Rectangle:

rectObj.get_bbox()

-Che
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to