Skip to content

Commit f4916c8

Browse files
spec: add map-tilegrid specification (#5265)
## New Specification: `map-tilegrid` Related to #5246 --- ### specification.md # map-tilegrid: Tile Grid Map for Equal-Area Geographic Comparison ## Description A tile grid map represents geographic regions (states, countries, provinces) as equally-sized tiles — squares or hexagons — arranged to approximate their real-world geographic positions. Unlike choropleth maps where large-area regions dominate visually, every region receives identical visual weight, making tile grid maps ideal for per-capita or per-region comparisons where the statistic matters more than physical area. Tiles are colored by a data variable and labeled with region abbreviations for identification. ## Applications - Comparing US state-level election results without geographic area bias distorting the visual impression - Showing per-country statistics across Europe with each nation given equal visual weight regardless of land area - Displaying regional health metrics (vaccination rates, disease incidence) without geographic size distortion - Visualizing technology adoption rates or policy compliance across administrative regions ## Data - `region` (string) — Region identifier or abbreviation (e.g., "CA", "TX", "DE") - `value` (numeric) — Metric to display via tile color (e.g., rate, percentage, count) - `row` (integer) — Grid row position for the tile (0-indexed from top) - `col` (integer) — Grid column position for the tile (0-indexed from left) - Size: 10–60 regions - Example: US states with per-capita income, EU countries with renewable energy percentage ## Notes - Tiles may be squares or hexagons — both are valid approaches - Color tiles using a sequential colormap for unipolar data or a diverging colormap when a meaningful midpoint exists - Label each tile with the region abbreviation, ensuring text is legible against the tile color - Include a colorbar or legend showing the value-to-color mapping - Predefined grid layouts are commonly available for US states and European countries - Maintain consistent tile sizing — equal area for all tiles is the defining characteristic --- **Next:** Add `approved` label to the issue to merge this PR. --- :robot: *[spec-create workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/24290835656)* Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 6af5752 commit f4916c8

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# map-tilegrid: Tile Grid Map for Equal-Area Geographic Comparison
2+
3+
## Description
4+
5+
A tile grid map represents geographic regions (states, countries, provinces) as equally-sized tiles — squares or hexagons — arranged to approximate their real-world geographic positions. Unlike choropleth maps where large-area regions dominate visually, every region receives identical visual weight, making tile grid maps ideal for per-capita or per-region comparisons where the statistic matters more than physical area. Tiles are colored by a data variable and labeled with region abbreviations for identification.
6+
7+
## Applications
8+
9+
- Comparing US state-level election results without geographic area bias distorting the visual impression
10+
- Showing per-country statistics across Europe with each nation given equal visual weight regardless of land area
11+
- Displaying regional health metrics (vaccination rates, disease incidence) without geographic size distortion
12+
- Visualizing technology adoption rates or policy compliance across administrative regions
13+
14+
## Data
15+
16+
- `region` (string) — Region identifier or abbreviation (e.g., "CA", "TX", "DE")
17+
- `value` (numeric) — Metric to display via tile color (e.g., rate, percentage, count)
18+
- `row` (integer) — Grid row position for the tile (0-indexed from top)
19+
- `col` (integer) — Grid column position for the tile (0-indexed from left)
20+
- Size: 10–60 regions
21+
- Example: US states with per-capita income, EU countries with renewable energy percentage
22+
23+
## Notes
24+
25+
- Tiles may be squares or hexagons — both are valid approaches
26+
- Color tiles using a sequential colormap for unipolar data or a diverging colormap when a meaningful midpoint exists
27+
- Label each tile with the region abbreviation, ensuring text is legible against the tile color
28+
- Include a colorbar or legend showing the value-to-color mapping
29+
- Predefined grid layouts are commonly available for US states and European countries
30+
- Maintain consistent tile sizing — equal area for all tiles is the defining characteristic
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Specification-level metadata for map-tilegrid
2+
# Auto-synced to PostgreSQL on push to main
3+
4+
spec_id: map-tilegrid
5+
title: Tile Grid Map for Equal-Area Geographic Comparison
6+
7+
# Specification tracking
8+
created: "2026-04-11T20:23:29Z"
9+
updated: null
10+
issue: 5246
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+
- map
18+
- heatmap
19+
data_type:
20+
- categorical
21+
- numeric
22+
- geospatial
23+
domain:
24+
- general
25+
- statistics
26+
features:
27+
- color-mapped
28+
- annotated
29+
- comparison

0 commit comments

Comments
 (0)