Drop passing `render_data` to `Curve.draw_last_datum()`

multichartz_backup
Tyler Goodlet 2022-12-08 11:00:06 -05:00
parent 0516e7d6f2
commit 8a295eba51
3 changed files with 2 additions and 9 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,