Rename `FastAppendCurve` -> `Curve`
parent
d770867163
commit
736178adfd
|
@ -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,
|
||||
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue