diff --git a/xija/gui_fit/plots.py b/xija/gui_fit/plots.py index d5966aa..1a2d5b9 100644 --- a/xija/gui_fit/plots.py +++ b/xija/gui_fit/plots.py @@ -284,7 +284,6 @@ def __init__(self, model, hist_msids): self.max_limit = -1000 self.min_limit = 1000 - self.canvas = canvas self.ax1 = self.fig.add_subplot(1, 2, 1) self.ax2 = self.fig.add_subplot(1, 2, 2) self.plot_dict = {} @@ -505,7 +504,8 @@ def update_plots(self): xpos_max, ystart, 'Maximum Error', ha="left", va="center", rotation=90, clip_on=True) - self.canvas.draw_idle() + self.fig.canvas.draw_idle() + self.fig.canvas.flush_events() class PlotBox(QtWidgets.QVBoxLayout): @@ -659,6 +659,7 @@ def update(self, first=False): self.fig.canvas.draw_idle() self.fig.canvas.flush_events() + class PlotsBox(QtWidgets.QVBoxLayout): def __init__(self, model, main_window): super(QtWidgets.QVBoxLayout, self).__init__()