Skip to content

Commit 9da6102

Browse files
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

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# heatmap-geographic: Geographic Heatmap for Spatial Density
2+
3+
## Description
4+
5+
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.
6+
7+
## Applications
8+
9+
- Visualizing crime incident density across a city to identify high-risk areas
10+
- Mapping population or activity density in urban planning studies
11+
- Displaying temperature, pollution, or environmental measurements interpolated across a geographic region
12+
- Showing customer or event density for retail site selection and marketing analysis
13+
14+
## Data
15+
16+
- `latitude` (numeric) - Geographic latitude coordinate (-90 to 90)
17+
- `longitude` (numeric) - Geographic longitude coordinate (-180 to 180)
18+
- `value` (numeric, optional) - Intensity or weight value at each point (defaults to 1 for pure density)
19+
- Size: 100-10,000 points (density estimation works best with sufficient data coverage)
20+
- Example: GPS coordinates of events, sensor locations with measurement values, or activity locations
21+
22+
## Notes
23+
24+
- Use kernel density estimation (KDE) or similar interpolation to create the continuous heatmap layer
25+
- Apply a sequential colormap (e.g., YlOrRd, inferno) with transparency to allow the basemap to show through
26+
- Include a colorbar legend showing the density or intensity scale
27+
- Add geographic context with country boundaries, coastlines, or street maps as a basemap
28+
- Consider adjusting the bandwidth/radius parameter based on data density and geographic scale
29+
- For interactive libraries, enable zoom to explore density at different scales
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Specification-level metadata for heatmap-geographic
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: heatmap-geographic
5+
title: Geographic Heatmap for Spatial Density
6+
7+
# Specification tracking
8+
created: 2026-01-10T08:06:44Z
9+
updated: null
10+
issue: 3638
11+
suggested: MarkusNeusinger
12+
13+
# Classification tags (applies to all library implementations)
14+
# See docs/reference/tagging-system.md for detailed guidelines
15+
tags:
16+
plot_type:
17+
- heatmap
18+
- map
19+
data_type:
20+
- geospatial
21+
- numeric
22+
- continuous
23+
domain:
24+
- general
25+
- business
26+
- science
27+
features:
28+
- basic
29+
- density
30+
- color-mapped
31+
- spatial

0 commit comments

Comments
 (0)