forked from M-Labs/artiq
waveform: fix log msg display
This commit is contained in:
parent
bafa69098a
commit
c794e51c1c
@ -371,9 +371,11 @@ class LogWaveform(_BaseWaveform):
|
|||||||
self._labels = []
|
self._labels = []
|
||||||
self.plot_data_item.setData(
|
self.plot_data_item.setData(
|
||||||
x=self.x_data, y=np.ones(len(self.x_data)))
|
x=self.x_data, y=np.ones(len(self.x_data)))
|
||||||
old_msg = ""
|
if len(data) == 0:
|
||||||
old_x = 0
|
return
|
||||||
for x, msg in data:
|
old_x = data[0][0]
|
||||||
|
old_msg = data[0][1]
|
||||||
|
for x, msg in data[1:]:
|
||||||
if x == old_x:
|
if x == old_x:
|
||||||
old_msg += "\n" + msg
|
old_msg += "\n" + msg
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user