Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Non-uniformly sampled 2d plots #325

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Nov 16, 2016

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?

Work needs to be done on integration, particularly the Plot classes insistence
on resampling, plus disambiguation of cell-based vs. vertex based data.
@jonathanrocher
Copy link
Collaborator

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.

@corranwebster
Copy link
Contributor Author

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.

@jwiggins
Copy link
Member

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

@jonathanrocher
Copy link
Collaborator

+1 for @jwiggins 's suggestion.

@corranwebster
Copy link
Contributor Author

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

@jonathanrocher
Copy link
Collaborator

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants