chaco icon indicating copy to clipboard operation
chaco copied to clipboard

[WIP] Non-uniformly sampled 2d plots

Open corranwebster opened this issue 8 years ago • 6 comments

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.

Screen Shot 2019-06-13 at 4 46 18 pm

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?

corranwebster avatar Nov 16 '16 13:11 corranwebster

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.

jonathanrocher avatar Nov 16 '16 16:11 jonathanrocher

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.

corranwebster avatar Nov 16 '16 16:11 corranwebster

What about requiring Cython for developers tracking the master branch, but including the .c file in the sdist?

jwiggins avatar Nov 19 '16 17:11 jwiggins

+1 for @jwiggins 's suggestion.

jonathanrocher avatar Nov 19 '16 19:11 jonathanrocher

That's a reasonable suggestion, but probably not as part of this PR.

corranwebster avatar Nov 21 '16 16:11 corranwebster

Agreed.

jonathanrocher avatar Nov 21 '16 17:11 jonathanrocher