Skip to content
Snippets Groups Projects
Commit c222dd6e authored by Guenter Quast's avatar Guenter Quast
Browse files

rpOsci: re-introduced legend chan1, chan2

parent 15e0edc0
No related branches found
No related tags found
No related merge requests found
......@@ -368,8 +368,11 @@ class OscDisplay(QWidget, Ui_OscDisplay):
self.ax_y2.set_ylabel("Voltage [mV]", color='grey', size='x-large')
# gq end
x = np.arange(self.tot)
(self.curve2,) = self.ax.plot(x, self.buffer[1::2], color="#00CCCC")
(self.curve1,) = self.ax.plot(x, self.buffer[0::2], color="#FFAA00")
(self.curve2,) = self.ax.plot(x, self.buffer[1::2],
color="#00CCCC", label="chan 2")
(self.curve1,) = self.ax.plot(x, self.buffer[0::2],
color="#FFAA00", label="chan 1")
self.ax.legend(handles=[self.curve1, self.curve2])
self.line = [None, None]
self.line[0] = self.ax.axvline(self.pre, linestyle="dotted")
self.line[1] = self.ax.axhline(self.levelValue.value(), linestyle="dotted")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment