[new] dont show plot if no data
This commit is contained in:
parent
8073a872c1
commit
2554f6ca7e
@ -524,7 +524,9 @@ class WaveformWidgetPG(QtGui.QWidget):
|
||||
method='normal'):
|
||||
if not wfdata:
|
||||
print('Nothing to plot.')
|
||||
self.setVisible(False)
|
||||
return
|
||||
self.setVisible(True)
|
||||
self.title = title
|
||||
self.clearPlotDict()
|
||||
self.wfstart, self.wfend = full_range(wfdata)
|
||||
|
Loading…
Reference in New Issue
Block a user