[bugfix] station names in pgplot
This commit is contained in:
parent
8f1943b48f
commit
9bfba65aee
@ -560,8 +560,9 @@ class WaveformWidgetPG(QtGui.QWidget):
|
|||||||
vb.setYRange(float(lims[0]), float(lims[1]), padding=0)
|
vb.setYRange(float(lims[0]), float(lims[1]), padding=0)
|
||||||
|
|
||||||
def setYTickLabels(self, pos, labels):
|
def setYTickLabels(self, pos, labels):
|
||||||
ticks = zip(pos, labels)
|
pos = list(pos)
|
||||||
minorTicks = [(0, 0) for item in labels]
|
ticks = list(zip(pos, labels))
|
||||||
|
minorTicks = [(0, 0) for _ in labels]
|
||||||
# leftAx.tickLength = 5
|
# leftAx.tickLength = 5
|
||||||
# leftAx.orientation = 'right'
|
# leftAx.orientation = 'right'
|
||||||
self.getAxItem('left').setTicks([ticks, minorTicks])
|
self.getAxItem('left').setTicks([ticks, minorTicks])
|
||||||
|
Loading…
Reference in New Issue
Block a user