[bugfix] identity check of np.array

This commit is contained in:
Marcel Paffrath 2018-04-18 16:01:39 +02:00
parent ba37d587a6
commit f0b6897053

View File

@ -1752,7 +1752,7 @@ class MainWindow(QMainWindow):
for times, data, times_syn, data_syn in plots:
self.dataPlot.plotWidget.getPlotItem().plot(times, data,
pen=self.dataPlot.pen_linecolor)
if data_syn:
if len(data_syn) > 0:
self.dataPlot.plotWidget.getPlotItem().plot(times_syn, data_syn,
pen=self.dataPlot.pen_linecolor_syn)
self.dataPlot.reinitMoveProxy()