Open ssfrr opened 6 years ago
I like this idea - there're also open issues for doing the same on image data and scatter data - there's really no reason to limit this to time series data imho? Also maybe this would live better in PlotUtils?
I think this particular behavior (computing the min/max of each chunk and filling between them) makes sense for time-series (or at least 1D) data. I guess the 2D extension would be surface plots where you bin into a 2D grid, make a min surface and a max surface and then fill the 3D volume between them. For image and scatter data it seems like you might want to do different things - like for a scatter you'd want a density heatmap, and for images you just want to downsample to something that's reasonable for the display, right?
yes that makes sense
I'm often plotting audio data which is pretty densely sampled, so it very quickly gets to the point where I accidentally try to plot a huge number of data points and everything grinds to a halt.
I'm thinking of integrating some automatic decimation to plotting as a recipe for
SampleBuf
objects, but I was wondering if this would be something that should be implemented by default if the given data exceeds some reasonable threshold.I've got the basic logic implemented below, but I don't have a great sense for the best way to integrate into Plots.jl.
The example creates (quickly) the following plot: