question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add more decimate options

See original GitHub issue

Right now, the HoloViews decimate operator randomly samples from the available data, dynamically on each zoom or pan. This is often a useful behavior, particularly for disconnected plots like Scatter, but for connected plots like Curve (e.g. timeseries) and Path, the results are chaotic and not a particularly good representation of the underlying data. For such cases, other options would be more useful:

  • Regular sampling: Regularly spaced downsampling (slicing with a stride) should be trivial to implement and would give a good approximation to the shape of smooth curves.
  • Outlier preserving: Some algorithms like Largest Triangle are better at preserving outliers, but may be slower and definitely would take more work to implement.
  • Mean aggregation: It would be slower than sampling, but one could aggregate over the data points in each stride chunk to take the mean, so that all data points at least affect the result.

If we implemented multiple types of sampling, the policy could be selected by mode='random', mode='regular', etc. We might want the default to be mode=None, where a mode appropriate to that Element type (e.g. random for Scatter and Points) would be selected.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jbednarcommented, Oct 19, 2022

Looks like I duplicated my own issue 4 years later: https://github.com/holoviz/holoviews/issues/5359

5359 includes links to LTTB sample code; please see that for details.

1reaction
jbednarcommented, Apr 15, 2020

No, it’s wide open for any interested user to dive into, and should be an easy win!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decimate Modifier — Blender Manual
The Decimate modifier allows you to reduce the vertex/face count of a mesh with minimal shape changes. This is not usually used on...
Read more >
Blender Decimate Modifier (Full Tutorial)
Navigate to the modifier tab in the Properties Panel. Choose “Add Modifier” and we find “Decimate” in the column labeled “Generate.” When the...
Read more >
How To Use Decimate Modifier in Blender - Create 3D Art
The Un-Subdivide option can be used if the model had previously been Subdivided using the Subdivision Surface modifier. It lets you to decimate...
Read more >
Blender - Using the Decimate Geometry tool to reduce triangle ...
Select the model and switch to Edit Mode. · Select Mesh > Clean up > Decimate Geometry from the bottom menu. · In...
Read more >
Reducing Your Geometry With The Decimate Modifier
To use the decimate modifier in Blender, select your object and then go to the modifiers tab in the properties panel. Go to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found