holoviz / hvplot

A high-level plotting API for pandas, dask, xarray, and networkx built on HoloViews
https://hvplot.holoviz.org
BSD 3-Clause "New" or "Revised" License
1.13k stars 108 forks source link

Expose more downsample algorithms and options #1312

Closed maximlt closed 6 months ago

maximlt commented 6 months ago

At the moment, I think, downsample=True is the only way to toggle the downsample1d and there's no way to customize how it's called, i.e. there's no way to set algorithm or some of its other options. Multiple options to implement that:

Small preference for the first option.

cc @droumis

droumis commented 6 months ago

IMO: overload downsample to accept a string. True could still default to use LTTB but we should allow for others, like downsample='minmax', etc