@@ -313,7 +313,8 @@ def _get_min(self):
313313 return [min (self .get_points ()[:, 0 ]),
314314 min (self .get_points ()[:, 1 ])]
315315 min = property (_get_min , None , None , """
316- (property) :attr:`min` is the bottom-left corner of the bounding box.""" )
316+ (property) :attr:`min` is the bottom-left corner of the bounding
317+ box.""" )
317318
318319 def _get_max (self ):
319320 return [max (self .get_points ()[:, 0 ]),
@@ -324,41 +325,44 @@ def _get_max(self):
324325 def _get_intervalx (self ):
325326 return self .get_points ()[:, 0 ]
326327 intervalx = property (_get_intervalx , None , None , """
327- (property) :attr:`intervalx` is the pair of *x* coordinates that define the
328- bounding box. It is not guaranteed to be sorted from left to right.""" )
328+ (property) :attr:`intervalx` is the pair of *x* coordinates that define
329+ the bounding box. It is not guaranteed to be sorted from left to
330+ right.""" )
329331
330332 def _get_intervaly (self ):
331333 return self .get_points ()[:, 1 ]
332334 intervaly = property (_get_intervaly , None , None , """
333- (property) :attr:`intervaly` is the pair of *y* coordinates that define the
334- bounding box. It is not guaranteed to be sorted from bottom to top.""" )
335+ (property) :attr:`intervaly` is the pair of *y* coordinates that define
336+ the bounding box. It is not guaranteed to be sorted from bottom to
337+ top.""" )
335338
336339 def _get_width (self ):
337340 points = self .get_points ()
338341 return points [1 , 0 ] - points [0 , 0 ]
339342 width = property (_get_width , None , None , """
340- (property) The width of the bounding box. It may be negative if :attr:`x1` <
341- :attr:`x0`.""" )
343+ (property) The width of the bounding box. It may be negative if
344+ :attr:`x1` < :attr:` x0`.""" )
342345
343346 def _get_height (self ):
344347 points = self .get_points ()
345348 return points [1 , 1 ] - points [0 , 1 ]
346349 height = property (_get_height , None , None , """
347- (property) The height of the bounding box. It may be negative if :attr:`y1` <
348- :attr:`y0`.""" )
350+ (property) The height of the bounding box. It may be negative if
351+ :attr:`y1` < :attr:` y0`.""" )
349352
350353 def _get_size (self ):
351354 points = self .get_points ()
352355 return points [1 ] - points [0 ]
353356 size = property (_get_size , None , None , """
354- (property) The width and height of the bounding box. May be negative, in the same
355- way as :attr:`width` and :attr:`height`.""" )
357+ (property) The width and height of the bounding box. May be negative,
358+ in the same way as :attr:`width` and :attr:`height`.""" )
356359
357360 def _get_bounds (self ):
358361 x0 , y0 , x1 , y1 = self .get_points ().flatten ()
359362 return (x0 , y0 , x1 - x0 , y1 - y0 )
360363 bounds = property (_get_bounds , None , None , """
361- (property) Returns (:attr:`x0`, :attr:`y0`, :attr:`width`, :attr:`height`).""" )
364+ (property) Returns (:attr:`x0`, :attr:`y0`, :attr:`width`,
365+ :attr:`height`).""" )
362366
363367 def _get_extents (self ):
364368 return self .get_points ().flatten ().copy ()
@@ -788,7 +792,8 @@ def update_from_data(self, x, y, ignore=None):
788792 - when False, include the existing bounds of the :class:`Bbox`.
789793 - when None, use the last value passed to :meth:`ignore`.
790794 """
791- warnings .warn ("update_from_data requires a memory copy -- please replace with update_from_data_xy" )
795+ warnings .warn (
796+ "update_from_data requires a memory copy -- please replace with update_from_data_xy" )
792797 xy = np .hstack ((x .reshape ((len (x ), 1 )), y .reshape ((len (y ), 1 ))))
793798 return self .update_from_data_xy (xy , ignore )
794799
0 commit comments