8000 FIX/API: set_canvas does not mark figure as stale · matplotlib/matplotlib@77e815e · GitHub
[go: up one dir, main page]

Skip to content

Commit 77e815e

Browse files
committed
FIX/API: set_canvas does not mark figure as stale
This is not part of the state of the figure that will trigger a re-drawing. If the user resets the canvas, it is their responsibility to schedule the redraw.
1 parent e6be6b0 commit 77e815e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,12 +1678,6 @@ class FigureCanvasBase(object):
16781678
'Tagged Image File Format')
16791679

16801680
def __init__(self, figure):
1681-
# put this first to make sure that we prevent any attempts to
1682-
# re-draw while we are constructing the canvas.
1683-
# See issue #5094, this only trigged on saving a png when:
1684-
# - using a non-agg backend
1685-
# - in interactive mode
1686-
# - not bunching `draw_idle` calls (ex not in IPython)
16871681
self._is_idle_drawing = True
16881682
self._is_saving = False
16891683
figure.set_canvas(self)

lib/matplotlib/figure.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,6 @@ def set_canvas(self, canvas):
560560
ACCEPTS: a FigureCanvas instance
561561
"""
562562
self.canvas = canvas
563-
self.stale = True
564563

565564
def hold(self, b=None):
566565
"""

0 commit comments

Comments
 (0)
0