[new] dont show plot if no data

This commit is contained in:
Marcel Paffrath 2018-04-26 16:32:05 +02:00
parent 8073a872c1
commit 2554f6ca7e

View File

@ -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)