fenix-hub / godot-engine.easy-charts

A Godot Engine addon for plotting general purpose charts. A collection of Control, 2D and 3D Nodes to plot every chart possible.
MIT License
647 stars 48 forks source link

[FEATURE] Add option to remove plotted points. #79

Closed addmix closed 1 year ago

addmix commented 1 year ago

Describe the solution you'd like

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.

Additional context

fenix-hub commented 1 year ago

If you have any issue with the current implementations, please feel free to re-open this issue.

thanks!