[bugfix] error when there is nothing to plot

This commit is contained in:
marcel committed 2018-04-23 13:33:05 +02:00
1 parent 0320ad67b9
commit 36a4f0df8a
2 files changed
+7 -2

No files matched your search

+4
View File
@@ -447,6 +447,10 @@ class WaveformWidgetPG(QtGui.QWidget):
self.orig_parent = parent
# attribute plotdict is a dictionary connecting position and a name
self.plotdict = dict()
# init labels
self.xlabel = None
self.ylabel = None
self.title = None
# create plot
self.main_layout = QtGui.QVBoxLayout()
self.label_layout = QtGui.QHBoxLayout()