From e677cb1ddb0eee8fe9d6a23d4476f9d50308b8b2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 14 Nov 2022 16:17:24 -0500 Subject: [PATCH] Simplify OHLC graphic color instance var name --- piker/ui/_ohlc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/piker/ui/_ohlc.py b/piker/ui/_ohlc.py index 048861d0..852196f3 100644 --- a/piker/ui/_ohlc.py +++ b/piker/ui/_ohlc.py @@ -91,7 +91,7 @@ class BarItems(pg.GraphicsObject): self, linked: LinkedSplits, plotitem: 'pg.PlotItem', # noqa - pen_color: str = 'bracket', + color: str = 'bracket', last_bar_color: str = 'bracket', name: Optional[str] = None, @@ -101,8 +101,8 @@ class BarItems(pg.GraphicsObject): self.linked = linked # XXX: for the mega-lulz increasing width here increases draw # latency... so probably don't do it until we figure that out. - self._color = pen_color - self.bars_pen = pg.mkPen(hcolor(pen_color), width=1) + self._color = color + self.bars_pen = pg.mkPen(hcolor(color), width=1) self.last_bar_pen = pg.mkPen(hcolor(last_bar_color), width=2) self._name = name