pub const DEFAULT_DECIMATE_THRESHOLD: usize = 5000;Expand description
Default point count above which auto-decimation activates.
Rationale: a typical figure is well under ~2000 device pixels wide, so a
line or scatter with more than a few thousand points cannot reveal extra
detail â adjacent points collapse onto the same pixel column. We pick
5000 as a conservative ceiling that sits comfortably above the pixel
budget of even very large figures while still cutting the work for the
truly large series (100kâ10M points) where rendering cost dominates.
Series at or below this size render every point, so small/medium plots are
never altered. The value is intentionally a round, documented constant so
output remains deterministic and reproducible across runs.