Commit 9da6102
authored
spec: add heatmap-geographic specification (#3639)
## New Specification: `heatmap-geographic`
Related to #3638
---
### specification.md
# heatmap-geographic: Geographic Heatmap for Spatial Density
## Description
A geographic heatmap visualizes spatial density or intensity values
across a map using continuous color gradients. Unlike choropleth maps
that color discrete regions, this plot shows smooth density variations
computed from point data or gridded values. The color intensity at each
location represents the concentration or magnitude of the underlying
data, making it ideal for identifying hotspots, clusters, and spatial
patterns in geographic data.
## Applications
- Visualizing crime incident density across a city to identify high-risk
areas
- Mapping population or activity density in urban planning studies
- Displaying temperature, pollution, or environmental measurements
interpolated across a geographic region
- Showing customer or event density for retail site selection and
marketing analysis
## Data
- `latitude` (numeric) - Geographic latitude coordinate (-90 to 90)
- `longitude` (numeric) - Geographic longitude coordinate (-180 to 180)
- `value` (numeric, optional) - Intensity or weight value at each point
(defaults to 1 for pure density)
- Size: 100-10,000 points (density estimation works best with sufficient
data coverage)
- Example: GPS coordinates of events, sensor locations with measurement
values, or activity locations
## Notes
- Use kernel density estimation (KDE) or similar interpolation to create
the continuous heatmap layer
- Apply a sequential colormap (e.g., YlOrRd, inferno) with transparency
to allow the basemap to show through
- Include a colorbar legend showing the density or intensity scale
- Add geographic context with country boundaries, coastlines, or street
maps as a basemap
- Consider adjusting the bandwidth/radius parameter based on data
density and geographic scale
- For interactive libraries, enable zoom to explore density at different
scales
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20875347294)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 490a59f commit 9da6102
2 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments