Skip to content

Gallery

Design recipes

Four complete looks, each a few lines: a site report, a dark analysis plate, a figure-ground map and a round poster.

Site report

A white page, a pale grey basemap, the site in a coral outline with everything outside it faded, a large serif title with one accent word, and the legend as a caption under the map.

title-editorial

kh.map(roads, "theme-silver stroke-[road_class] ramp-zoning width-[rank] width-max-3",
       title="Street *types.*", kicker="Layer 08: Streets",
       subtitle="Who each street is for, from footpaths to through traffic.",
       title_style="above bg-transparent shadow-none p-0 font-serif text-5xl accent-[#e6745c]",
       legend={"counts": False, "title": ""}, legend_style="below flex-row bg-transparent shadow-none p-0")

To fade everything outside the site, add the site polygon on top with a mask:

mask

m = kh.Map(basemap="silver")
m.add(roads, "stroke-[road_class] ramp-zoning width-[rank] width-max-3 legend-none")
m.add(site, "fill-transparent stroke-[#e6745c] stroke-2 mask-white/85")
m

Good ramps for report layers: skyline for heights, zoning for land use, coral for noise, pollen for amenity density, and ramp-[#d77d7b,#e5c46b,#8fd08a] with colors= for high, medium and low ratings.

Dark analysis plate

Charcoal ground, slate water, warm terracotta data and a bold uppercase title with an accent word.

kh.map(states, "theme-charcoal fill-[density] ramp-terracotta scheme-q5",
       title="Density: *where people* crowd", subtitle="People per km2, 2008",
       title_style="bottom-left uppercase font-black text-3xl accent-[#d97a5c] rounded-none w-96",
       legend={"style": "bar", "title": "People per km2"}, legend_style="top-right rounded-none")

ramp-kiln gives six earthy categories (cream, coral, brick, sage, steel, taupe) for building types or clusters.

Figure-ground

White ground, black buildings, aqua water, no labels; highlight zones with ramp-blush.

# zones: your highlight areas, with a numeric zone column
kh.map(zones, "theme-ink fill-[zone] ramp-blush scheme-q5 opacity-80", shape="circle")

Round poster

Cream page, buildings in a mixed warm palette, dark roads and a name tag. Swap ramp-poster-warm for ramp-poster-lemon or ramp-poster-lagoon.

shape-circle

mixed = buildings.assign(mix=[i % 5 for i in range(len(buildings))])
kh.map(mixed, "theme-poster fill-[mix] scheme-cat ramp-poster-warm stroke-transparent legend-none",
       shape="circle", title="Khartoum", title_style="bottom-left bg-white font-[Caveat] text-4xl")