diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index 329f15f5..bbab5a41 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -50,7 +50,7 @@ from ._cursor import ( from ..data._sharedmem import ShmArray from ._l1 import L1Labels from ._ohlc import BarItems -from ._curve import FastAppendCurve +from ._curve import Curve from ._style import ( hcolor, CHART_MARGINS, @@ -1069,7 +1069,7 @@ class ChartPlotWidget(pg.PlotWidget): # yah, we wrote our own B) data = shm.array - curve = FastAppendCurve( + curve = Curve( # antialias=True, name=name, diff --git a/piker/ui/_curve.py b/piker/ui/_curve.py index 0d32749e..2cf9f0b7 100644 --- a/piker/ui/_curve.py +++ b/piker/ui/_curve.py @@ -53,7 +53,7 @@ _line_styles: dict[str, int] = { } -class FastAppendCurve(pg.GraphicsObject): +class Curve(pg.GraphicsObject): ''' A faster, simpler, append friendly version of ``pyqtgraph.PlotCurveItem`` built for highly customizable real-time @@ -296,7 +296,7 @@ class FastAppendCurve(pg.GraphicsObject): ) -> None: profiler = pg.debug.Profiler( - msg=f'FastAppendCurve.paint(): `{self._name}`', + msg=f'Curve.paint(): `{self._name}`', disabled=not pg_profile_enabled(), ms_threshold=ms_slower_then, ) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index c5e813ea..c2e6ec09 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -60,7 +60,7 @@ from ._ohlc import ( bar_from_ohlc_row, ) from ._curve import ( - FastAppendCurve, + Curve, ) from ..log import get_logger @@ -175,7 +175,7 @@ def render_baritems( format_xy=ohlc_flat_to_xy, ) - curve = FastAppendCurve( + curve = Curve( name=f'{flow.name}_ds_ohlc', color=bars._color, ) @@ -661,7 +661,7 @@ class Flow(msgspec.Struct): # , frozen=True): last_read=read, ) - # ``FastAppendCurve`` case: + # ``Curve`` case: array_key = array_key or self.name # print(array_key)