chaco
chaco copied to clipboard
[WIP] Non-uniformly sampled 2d plots
This provides a new plot type that displays a pixel at points on a (possibly non-uniformly sampled) grid, and correctly handles downsampling when zoomed out. This is particularly intended for multi-valued time-series data which may not be uniformly sampled in time, such as you might get from real-world distributed acoustic sensing.
Includes fast 2d downsampling in Cython, which may be of use to other plots as well.
Needs unit tests.
There may be some discussion required around what to do when zoomed far in - single pixels are not as compelling as other markers; maybe should display at lower resolution?
I haven't looked at the details, but noticed that you have checked in the .c file. I am assuming that's unintentional since it is generated, so I thought I would drop a note.
It's intentional: for Enable and Chaco we include the .c file so that things can be built without having to have Cython installed.
Developers have to be good and remember to update the .c file if they make changes to the Cython code.
What about requiring Cython for developers tracking the master branch, but including the .c file in the sdist?
+1 for @jwiggins 's suggestion.
That's a reasonable suggestion, but probably not as part of this PR.
Agreed.