Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 83b322a

Browse files
committed
FIX #5680 span selector + blit + span_stays broken
The rect properties for the 'live' rect were being forwarded re-used for the stay artist, however if blitting is used, then 'animated' is set which exclude the artist from the normal draw tree.
1 parent 47dded2 commit 83b322a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,7 @@ def new_axes(self, ax):
14731473
transform=trans,
14741474
visible=False,
14751475
**self.rectprops)
1476+
self.stay_rect.set_animated(False)
14761477
self.ax.add_patch(self.stay_rect)
14771478

14781479
self.ax.add_patch(self.rect)

0 commit comments

Comments
 (0)