Don't pass color down to axis
parent
f32763d992
commit
bed6a631c0
|
@ -510,7 +510,6 @@ class ChartPlotWidget(pg.PlotWidget):
|
|||
self._labels[name] = (label, update)
|
||||
self._update_contents_label(len(data) - 1)
|
||||
|
||||
|
||||
if self._cursor:
|
||||
self._cursor.add_curve_cursor(self, curve)
|
||||
|
||||
|
@ -525,9 +524,9 @@ class ChartPlotWidget(pg.PlotWidget):
|
|||
last = self._ysticks[name] = YSticky(
|
||||
chart=self,
|
||||
parent=self.getAxis('right'),
|
||||
# TODO: pass this from symbol data
|
||||
# digits=0,
|
||||
opacity=1,
|
||||
color=pg.mkPen(hcolor('pikers'))
|
||||
)
|
||||
return last
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ class ChartView(pg.ViewBox):
|
|||
if ev.delta() > 0 and vl <= _min_points_to_show:
|
||||
log.debug("Max zoom bruh...")
|
||||
return
|
||||
|
||||
if ev.delta() < 0 and vl >= len(self.linked_charts._array):
|
||||
log.debug("Min zoom bruh...")
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue