[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'):
|
method='normal'):
|
||||||
if not wfdata:
|
if not wfdata:
|
||||||
print('Nothing to plot.')
|
print('Nothing to plot.')
|
||||||
|
self.setVisible(False)
|
||||||
return
|
return
|
||||||
|
self.setVisible(True)
|
||||||
self.title = title
|
self.title = title
|
||||||
self.clearPlotDict()
|
self.clearPlotDict()
|
||||||
self.wfstart, self.wfend = full_range(wfdata)
|
self.wfstart, self.wfend = full_range(wfdata)
|
||||||
|
Loading…
Reference in New Issue
Block a user