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

Build contours from irregular and unsorted data #26

Open
tbreloff opened this issue Oct 7, 2015 · 2 comments
Open

Build contours from irregular and unsorted data #26

tbreloff opened this issue Oct 7, 2015 · 2 comments

Comments

@tbreloff
Copy link

tbreloff commented Oct 7, 2015

I'm starting to look at incorporating generalized contours into my package Plots.jl, but I'm a little unsure if I can do what I want:

Lets suppose I have 3 vectors:

x = rand(n)
y = rand(n)
z = x .* y

Is is possible (with Contour.jl) to extract contour coordinates for the contour lines directly from these vectors? Or do I need to preprocess the data onto some regular grid and pass a dense matrix with the heights?

I spent just a couple minutes googling, and it seems reasonable to implement something like distance-weighted least squares to preprocess the data into a mesh. If this doesn't exist, and I implement it, would you like me to submit a PR?

@darwindarak
Copy link
Collaborator

Contour.jl does not have anything like that right now. A PR for that would definitely be welcome!

@asinghvi17
Copy link
Contributor

Makie does something similar with DelaunayTriangulation.jl. Maybe that could be a separate "backend" for Contour.jl, via an extension?

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

No branches or pull requests

3 participants