Skip to content

Commit

Permalink
change colors for CH1 and CH2
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-demin committed Oct 31, 2016
1 parent a749e7a commit 28f7e06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PyQtScope.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def __init__(self):
self.axes = figure.add_subplot(111)
self.canvas = FigureCanvas(figure)
self.plotLayout.addWidget(self.canvas)
self.curve1, = self.axes.plot(np.zeros(2500), color = '#EEDD00')
self.curve2, = self.axes.plot(np.zeros(2500), color = '#00DDEE')
self.curve1, = self.axes.plot(np.zeros(2500), color = '#FFAA00')
self.curve2, = self.axes.plot(np.zeros(2500), color = '#00CCCC')
self.axes.set_xticks(np.arange(0, 2501, 250))
self.axes.set_yticks(np.arange(-100, 101, 25))
self.axes.set_xticklabels([])
Expand Down Expand Up @@ -169,11 +169,11 @@ def read_data(self):
if self.sca1:
self.sca1.remove()
self.sca1 = None
self.sca1 = self.axes.text(0, -110, 'CH1 %sV' % metric_prefix(float(sca[0])), color = '#EEDD00')
self.sca1 = self.axes.text(0, -110, 'CH1 %sV' % metric_prefix(float(sca[0])), color = '#FFAA00')
if self.sca2:
self.sca2.remove()
self.sca2 = None
self.sca2 = self.axes.text(750, -110, 'CH2 %sV' % metric_prefix(float(sca[1])), color = '#00DDEE')
self.sca2 = self.axes.text(750, -110, 'CH2 %sV' % metric_prefix(float(sca[1])), color = '#00CCCC')
if self.scam:
self.scam.remove()
self.scam = None
Expand Down

0 comments on commit 28f7e06

Please sign in to comment.