diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 1da886e3..c5329138 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -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 diff --git a/piker/ui/_interaction.py b/piker/ui/_interaction.py index 6b0dcf1d..287a59c5 100644 --- a/piker/ui/_interaction.py +++ b/piker/ui/_interaction.py @@ -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