Array functions to be exposed on the Function class such as pop_front() or remove_at()
Along with a scrolling graph option that discards "old" values after the domain reaches some size.
Describe an implementation suggestion
For every new plotted point, check the oldest point, if the difference between the newest and oldest point has an absolute magnitude greater than some user-defined value, the oldest point is discarded. If that oldest point gets discarded, run the check on the next oldest point until no points are discarded.
Describe the solution you'd like
Array functions to be exposed on the
Function
class such aspop_front()
orremove_at()
Along with a scrolling graph option that discards "old" values after the domain reaches some size.Describe an implementation suggestion
For every new plotted point, check the oldest point, if the difference between the newest and oldest point has an absolute magnitude greater than some user-defined value, the oldest point is discarded. If that oldest point gets discarded, run the check on the next oldest point until no points are discarded.
Additional context