Drop passing `render_data` to `Curve.draw_last_datum()`
parent
2a797d32dc
commit
5216a6b732
|
@ -360,7 +360,6 @@ class Curve(pg.GraphicsObject):
|
|||
self,
|
||||
path: QPainterPath,
|
||||
src_data: np.ndarray,
|
||||
render_data: np.ndarray,
|
||||
reset: bool,
|
||||
array_key: str,
|
||||
index_field: str,
|
||||
|
@ -368,8 +367,8 @@ class Curve(pg.GraphicsObject):
|
|||
) -> None:
|
||||
# default line draw last call
|
||||
# with self.reset_cache():
|
||||
x = render_data[index_field]
|
||||
y = render_data[array_key]
|
||||
x = src_data[index_field]
|
||||
y = src_data[array_key]
|
||||
|
||||
# draw the "current" step graphic segment so it
|
||||
# lines up with the "middle" of the current
|
||||
|
@ -392,7 +391,6 @@ class FlattenedOHLC(Curve):
|
|||
self,
|
||||
path: QPainterPath,
|
||||
src_data: np.ndarray,
|
||||
render_data: np.ndarray,
|
||||
reset: bool,
|
||||
array_key: str,
|
||||
index_field: str,
|
||||
|
@ -423,7 +421,6 @@ class StepCurve(Curve):
|
|||
self,
|
||||
path: QPainterPath,
|
||||
src_data: np.ndarray,
|
||||
render_data: np.ndarray,
|
||||
reset: bool,
|
||||
array_key: str,
|
||||
index_field: str,
|
||||
|
|
|
@ -221,7 +221,6 @@ class BarItems(pg.GraphicsObject):
|
|||
self,
|
||||
path: QPainterPath,
|
||||
src_data: np.ndarray,
|
||||
render_data: np.ndarray,
|
||||
reset: bool,
|
||||
array_key: str,
|
||||
index_field: str,
|
||||
|
|
|
@ -733,7 +733,6 @@ class Viz(msgspec.Struct): # , frozen=True):
|
|||
# # graphics.draw_last_datum(
|
||||
# # path,
|
||||
# # src_array,
|
||||
# # data,
|
||||
# # reset,
|
||||
# # array_key,
|
||||
# # )
|
||||
|
@ -747,7 +746,6 @@ class Viz(msgspec.Struct): # , frozen=True):
|
|||
graphics.draw_last_datum(
|
||||
path,
|
||||
src_array,
|
||||
data,
|
||||
reset,
|
||||
array_key,
|
||||
index_field=self.index_field,
|
||||
|
@ -785,7 +783,6 @@ class Viz(msgspec.Struct): # , frozen=True):
|
|||
x, y = g.draw_last_datum(
|
||||
g.path,
|
||||
src_array,
|
||||
src_array,
|
||||
False, # never reset path
|
||||
array_key,
|
||||
self.index_field,
|
||||
|
|
Loading…
Reference in New Issue