Commit 71f0c21d authored by Yori's avatar Yori
Browse files

in mpl_fig.py: refresh(): add as_seen keyword alike in print_to_file (prevent...

in mpl_fig.py: refresh(): add as_seen keyword alike in print_to_file (prevent the call of fig.plot())
parent 63eb51bf
Pipeline #674 failed with stage
in 23 minutes and 57 seconds
......@@ -186,7 +186,7 @@ class MplWin_TkAgg(FigureManagerTk):
self._bound_figure(fig)
# REFRESH ----------------------------------------------------------
def refresh(self):
def refresh(self, as_seen=False):
# in the case the figure got another canvas
# rebound the figure. This situation should not happend!!
......@@ -197,7 +197,8 @@ class MplWin_TkAgg(FigureManagerTk):
self.set_figure(self.canvas.figure)
# refresh
self.canvas.figure.plot()
if not as_seen:
self.canvas.figure.plot()
self.canvas.draw()
return(True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment