Restore coord-cache resetting
Turns out we can't seem to avoid the artefacts when click-drag-scrolling (results in weird repeated "smeared" curve segments) so just go back to the original code.epoch_indexing_and_dataviz_layer
parent
7aef31701b
commit
9fcc6f9c44
|
@ -718,30 +718,27 @@ class Viz(msgspec.Struct): # , frozen=True):
|
||||||
|
|
||||||
path, data, reset = out
|
path, data, reset = out
|
||||||
|
|
||||||
# if self.yrange:
|
|
||||||
# print(f'viz {self.name} yrange from m4: {self.yrange}')
|
|
||||||
|
|
||||||
# XXX: SUPER UGGGHHH... without this we get stale cache
|
# XXX: SUPER UGGGHHH... without this we get stale cache
|
||||||
# graphics that don't update until you downsampler again..
|
# graphics that don't update until you downsampler again..
|
||||||
# if reset:
|
if reset:
|
||||||
# with graphics.reset_cache():
|
with graphics.reset_cache():
|
||||||
# # assign output paths to graphicis obj
|
# assign output paths to graphicis obj
|
||||||
# graphics.path = r.path
|
graphics.path = r.path
|
||||||
# graphics.fast_path = r.fast_path
|
graphics.fast_path = r.fast_path
|
||||||
|
|
||||||
# # XXX: we don't need this right?
|
# XXX: we don't need this right?
|
||||||
# # graphics.draw_last_datum(
|
# graphics.draw_last_datum(
|
||||||
# # path,
|
# path,
|
||||||
# # src_array,
|
# src_array,
|
||||||
# # reset,
|
# reset,
|
||||||
# # array_key,
|
# array_key,
|
||||||
# # )
|
# )
|
||||||
# # graphics.update()
|
# graphics.update()
|
||||||
# # profiler('.update()')
|
# profiler('.update()')
|
||||||
# else:
|
else:
|
||||||
# assign output paths to graphicis obj
|
# assign output paths to graphicis obj
|
||||||
graphics.path = r.path
|
graphics.path = r.path
|
||||||
graphics.fast_path = r.fast_path
|
graphics.fast_path = r.fast_path
|
||||||
|
|
||||||
graphics.draw_last_datum(
|
graphics.draw_last_datum(
|
||||||
path,
|
path,
|
||||||
|
|
Loading…
Reference in New Issue