Skip to content

Commit

Permalink
FIX matplotlib#5680 span selector + blit + span_stays broken
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tacaswell committed Dec 15, 2015
1 parent 47dded2 commit 83b322a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,7 @@ def new_axes(self, ax):
transform=trans,
visible=False,
**self.rectprops)
self.stay_rect.set_animated(False)
self.ax.add_patch(self.stay_rect)

self.ax.add_patch(self.rect)
Expand Down

0 comments on commit 83b322a

Please sign in to comment.