Rename `FastAppendCurve` -> `Curve`

incremental_update_paths
Tyler Goodlet 2022-06-02 18:11:59 -04:00
parent d770867163
commit 736178adfd
3 changed files with 7 additions and 7 deletions

View File

@ -50,7 +50,7 @@ from ._cursor import (
from ..data._sharedmem import ShmArray from ..data._sharedmem import ShmArray
from ._l1 import L1Labels from ._l1 import L1Labels
from ._ohlc import BarItems from ._ohlc import BarItems
from ._curve import FastAppendCurve from ._curve import Curve
from ._style import ( from ._style import (
hcolor, hcolor,
CHART_MARGINS, CHART_MARGINS,
@ -1069,7 +1069,7 @@ class ChartPlotWidget(pg.PlotWidget):
# yah, we wrote our own B) # yah, we wrote our own B)
data = shm.array data = shm.array
curve = FastAppendCurve( curve = Curve(
# antialias=True, # antialias=True,
name=name, name=name,

View File

@ -53,7 +53,7 @@ _line_styles: dict[str, int] = {
} }
class FastAppendCurve(pg.GraphicsObject): class Curve(pg.GraphicsObject):
''' '''
A faster, simpler, append friendly version of A faster, simpler, append friendly version of
``pyqtgraph.PlotCurveItem`` built for highly customizable real-time ``pyqtgraph.PlotCurveItem`` built for highly customizable real-time
@ -296,7 +296,7 @@ class FastAppendCurve(pg.GraphicsObject):
) -> None: ) -> None:
profiler = pg.debug.Profiler( profiler = pg.debug.Profiler(
msg=f'FastAppendCurve.paint(): `{self._name}`', msg=f'Curve.paint(): `{self._name}`',
disabled=not pg_profile_enabled(), disabled=not pg_profile_enabled(),
ms_threshold=ms_slower_then, ms_threshold=ms_slower_then,
) )

View File

@ -60,7 +60,7 @@ from ._ohlc import (
bar_from_ohlc_row, bar_from_ohlc_row,
) )
from ._curve import ( from ._curve import (
FastAppendCurve, Curve,
) )
from ..log import get_logger from ..log import get_logger
@ -175,7 +175,7 @@ def render_baritems(
format_xy=ohlc_flat_to_xy, format_xy=ohlc_flat_to_xy,
) )
curve = FastAppendCurve( curve = Curve(
name=f'{flow.name}_ds_ohlc', name=f'{flow.name}_ds_ohlc',
color=bars._color, color=bars._color,
) )
@ -661,7 +661,7 @@ class Flow(msgspec.Struct): # , frozen=True):
last_read=read, last_read=read,
) )
# ``FastAppendCurve`` case: # ``Curve`` case:
array_key = array_key or self.name array_key = array_key or self.name
# print(array_key) # print(array_key)