@@ -285,7 +285,7 @@ def __init__(self, ax, loc=None, bbox=None, **kwargs):
285285 loc : str
286286 The position of the cell with respect to *ax*. This must be one of
287287 the `~.Table.codes`.
288- bbox : `.Bbox` or None
288+ bbox : `.Bbox` or [xmin, ymin, width, height], optional
289289 A bounding box to draw the table into. If this is not *None*, this
290290 overrides *loc*.
291291
@@ -595,7 +595,10 @@ def _update_positions(self, renderer):
595595
596596 if self ._bbox is not None :
597597 # Position according to bbox
598- rl , rb , rw , rh = self ._bbox
598+ if isinstance (self ._bbox , Bbox ):
599+ rl , rb , rw , rh = self ._bbox .bounds
600+ else :
601+ rl , rb , rw , rh = self ._bbox
599602 self .scale (rw / w , rh / h )
600603 ox = rl - l
601604 oy = rb - b
@@ -710,7 +713,7 @@ def table(ax,
710713 The position of the cell with respect to *ax*. This must be one of
711714 the `~.Table.codes`.
712715
713- bbox : `.Bbox`, optional
716+ bbox : `.Bbox` or [xmin, ymin, width, height] , optional
714717 A bounding box to draw the table into. If this is not *None*, this
715718 overrides *loc*.
716719
0 commit comments