magland / figurl-franklab-views

0 stars 0 forks source link

Improve one-point-per-pixel logic. #8

Closed jsoules closed 1 year ago

jsoules commented 1 year ago

Adjust the observed-position overlay drawing logic so that it only skips points that would actually map to the same pixel.

Adjust the discontinuity-preservation logic so that it depends on the pixel distance between animal positions, rather than a percentage of the track. (This seems like the right thing to do for now, but it may prove problematic in the future, so we might need to back that part out at a later date.)

jsoules commented 1 year ago

(I mean specifically it would be a problem if the canvas was very tall.)

magland commented 1 year ago

Looks great, merging.