Skip to content

Commit

Permalink
Same for HistogramWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
jzuhone committed Sep 7, 2022
1 parent 94e320c commit c8ea2da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xija/gui_fit/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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__()
Expand Down

0 comments on commit c8ea2da

Please sign in to comment.