Skip to content

Commit

Permalink
(Spectrum) Properly update the plot widget
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed Jan 31, 2016
1 parent 8315a42 commit b1ceba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions friture/spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ def handle_new_data(self, floatdata):

# method
def canvasUpdate(self):
if not self.isVisible():
return
self.PlotZoneSpect.update()

def pause(self):
self.PlotZoneSpect.pause()
Expand Down
2 changes: 2 additions & 0 deletions friture/spectrumPlotWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ def canvasResized(self, canvasWidth, canvasHeight):
self.needtransform = True
self.draw()

def canvasUpdate(self):
self.canvasWidget.update()

class QuadsItem:

Expand Down

0 comments on commit b1ceba0

Please sign in to comment.