Skip to content

Add KDE plot for user-specified bounding box#2

Merged
thomasteisberg merged 1 commit into
mainfrom
kde-plot
May 18, 2026
Merged

Add KDE plot for user-specified bounding box#2
thomasteisberg merged 1 commit into
mainfrom
kde-plot

Conversation

@thomasteisberg
Copy link
Copy Markdown
Member

Adds a feature allowing the user to specify a bounding box and generate a KDE plot of the selected statistic within that box -- designed to be useful to determining the spread of a value within a region and comparing between seasons

Draw a polygon on the map (custom lightweight tool) to get a
seaborn-kdeplot-style panel: one unit-area Gaussian-KDE curve per
enabled season plus a bold white "All" curve, rendered with uPlot.
Point-in-polygon is tested in the map's projected CRS and the
in-region trace indices are cached so variable/season changes only
re-pull values. A fixed custom legend sits to the right (uPlot's
live legend reflowed and shifted the canvas under the cursor) and
highlights the entry matching the hovered line.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@thomasteisberg thomasteisberg merged commit e4cb01a into main May 18, 2026
2 checks passed
@thomasteisberg thomasteisberg deleted the kde-plot branch May 18, 2026 17:27
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.

1 participant