Don't pass color down to axis

bar_select
Tyler Goodlet 2020-10-25 10:49:31 -04:00
parent f32763d992
commit bed6a631c0
2 changed files with 2 additions and 2 deletions

View File

@ -510,7 +510,6 @@ class ChartPlotWidget(pg.PlotWidget):
self._labels[name] = (label, update) self._labels[name] = (label, update)
self._update_contents_label(len(data) - 1) self._update_contents_label(len(data) - 1)
if self._cursor: if self._cursor:
self._cursor.add_curve_cursor(self, curve) self._cursor.add_curve_cursor(self, curve)
@ -525,9 +524,9 @@ class ChartPlotWidget(pg.PlotWidget):
last = self._ysticks[name] = YSticky( last = self._ysticks[name] = YSticky(
chart=self, chart=self,
parent=self.getAxis('right'), parent=self.getAxis('right'),
# TODO: pass this from symbol data
# digits=0, # digits=0,
opacity=1, opacity=1,
color=pg.mkPen(hcolor('pikers'))
) )
return last return last

View File

@ -51,6 +51,7 @@ class ChartView(pg.ViewBox):
if ev.delta() > 0 and vl <= _min_points_to_show: if ev.delta() > 0 and vl <= _min_points_to_show:
log.debug("Max zoom bruh...") log.debug("Max zoom bruh...")
return return
if ev.delta() < 0 and vl >= len(self.linked_charts._array): if ev.delta() < 0 and vl >= len(self.linked_charts._array):
log.debug("Min zoom bruh...") log.debug("Min zoom bruh...")
return return