Skip to content

Commit 7780821

Browse files
committed
ENH : add stale flag to PaddedBox
1 parent b2df645 commit 7780821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,15 @@ def draw(self, renderer):
546546
c.draw(renderer)
547547

548548
#bbox_artist(self, renderer, fill=False, props=dict(pad=0.))
549+
self.stale = False
549550

550551
def update_frame(self, bbox, fontsize=None):
551552
self.patch.set_bounds(bbox.x0, bbox.y0,
552553
bbox.width, bbox.height)
553554

554555
if fontsize:
555556
self.patch.set_mutation_scale(fontsize)
557+
self.stale = True
556558

557559
def draw_frame(self, renderer):
558560
# update the location and size of the legend

0 commit comments

Comments
 (0)