Skip to content

Build contours from irregular and unsorted data #26

Open
@tbreloff

Description

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions