◆ Gallery
Gallery
Examples with public data: the network of urban influence in Pernambuco (REGIC, IBGE) and the journeys between the municipalities of the Recife metropolitan region; at the end, the synthetic city of How it works. Each one shows the command that made it, its honesty line (how much of the volume is in corridors, internal or left out) and, when there is one, the interactive page: hover a segment to see the pairs that run through it, click a place to see only its flows.
The figures are the program's own, untouched, drawn with --lang en for this page. The interactive pages are self-contained HTML files that open straight from disk. For style variations of the same data see Styles; for lines by category, Lines; for other filters, Filters.
- Network of urban influence in Pernambuco, one line per regional network
- The same, on the dark theme
- The same lines, horizontal and vertical pieces alone
- The same network as corridors, before and after
- The same network, horizontal and vertical pieces alone
- Bevelled corners and fading by volume
- Recife metropolitan region, between municipalities
- The same, pinned
- The same, one line per part of the region where the journey starts
- The same lines, horizontal and vertical pieces alone
- The same lines, on the dark theme
- The same, as rails on the dark theme
- The same, with both directions side by side
- Over a map (MapLibre GL)
- Synthetic city, grouped
Network of urban influence in Pernambuco, one line per regional network
Links of the REGIC survey that start in the municipalities of Pernambuco. Each link takes as its category the regional centre its origin belongs to in the REGIC hierarchy (the immediate link, followed up to the centre below Recife). With categories the corridors become parallel lines, one colour per network, as on a metro map. --k 1: each place's largest link designs the skeleton; --frame boundary: the state fills the canvas and the segments to other states leave through the edge; --pin: every place stays at its point of the map and the segments bend to 0°, 45° and 90°.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe_redes.json --name regic-redes --title "" --k 1 --frame boundary --labels 30 --pin --corners smooth --corner-radius 10 --place-shape square --max-categories 12 --line-colours "#1F77B4,#E66100,#7F7F7F,#9C2A6B,#3F2B96,#D45FB3,#8C5A00,#1D1E20,#17A2B8,#C9372C,#2CA02C" --lang en
FlowSpec (JSON)Program summaryInput data
Source: IBGE, Regions of Influence of Cities (REGIC) 2018, survey of links. The percentage of each link, which does not add up, was converted into “person-equivalents” (percentage × population of the origin, IBGE 2022) so that it can be summed along a corridor. Projection SIRGAS 2000 / UTM 24S. Networks: the immediate links of REGIC 2018; the lines are named after their centres (“Centros de outros estados”: centres in other states).
The same, on the dark theme
Same computation and same layout, on dark paper (--theme dark). The colours of the networks were lightened for the dark paper with --line-colours, in the order of the legend; without them the theme's palette, of eight colours, would repeat three colours among the eleven networks.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe_redes.json --name regic-redes-escuro --title "" --k 1 --frame boundary --labels 30 --pin --corners smooth --corner-radius 10 --max-categories 12 --theme dark --line-colours "#56B4E9,#E69F00,#9AA0A6,#D9669E,#8F86F0,#F2A6DA,#C8A24A,#F4F1EA,#2EC4C4,#FF6B5C,#4CC38A" --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same lines, horizontal and vertical pieces alone
--ortho bends the segments to horizontal and vertical pieces alone and --corners bevel cuts each bend with a bevel. With --place-shape square each place is a rounded square of the same area as the circle; the centres where many lines leave on the same side get a larger square, like the stations of a metro map.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe_redes.json --name regic-redes-orto --title "" --k 1 --frame boundary --labels 30 --ortho --corners bevel --corner-radius 8 --place-shape square --max-categories 12 --line-colours "#1F77B4,#E66100,#7F7F7F,#9C2A6B,#3F2B96,#D45FB3,#8C5A00,#1D1E20,#17A2B8,#C9372C,#2CA02C" --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same network as corridors, before and after
Without categories (regic_pe.json), on the geographic layout, with k = 1 and framed on the state outline. On the left, one straight line per link; on the right, the same flows in shared corridors, with widths by volume: the trunks that join the interior to Recife show.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe.json --name regic --title "" --k 1 --frame boundary --labels 40 --html --lang en
Interactive pageFlowSpec (JSON)Program summaryInput data
Same source.
The same network, horizontal and vertical pieces alone
--ortho keeps every place at its point of the map and bends the segments to horizontal and vertical pieces alone; with --corners smooth each bend is an arc of radius --corner-radius.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe.json --name regic-orto --title "" --k 1 --frame boundary --labels 40 --ortho --corners smooth --corner-radius 10 --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
Bevelled corners and fading by volume
The same layout with --corners bevel: each bend is cut by a straight piece that starts --corner-radius before it. With --fade 0.85 each segment fades towards the paper by its volume and the trunks stand out.
100% of the volume in 228 segments · 0% internal · 0% left out. 214 places, 1,092 pairs (1,092 routed); mean detour 1.25, largest 28.05.
milkflow regic_pe.json --name regic-orto-chanfro --title "" --k 1 --frame boundary --labels 40 --ortho --corners bevel --corner-radius 8 --fade 0.85 --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
Recife metropolitan region, between municipalities
Public-transport journeys per working day between the region's 15 municipalities. Most of the volume stays inside each municipality (the grey ring); the corridors show what crosses municipal borders.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios.json --name rmr --title "" --schematic --html --lang en
Interactive pageFlowSpec (JSON)Program summaryInput data
Source: public origin–destination table between municipalities, aggregated from the electronic ticketing of public transport (working day, 2026); municipal positions and outlines from the public municipal boundaries, simplified and projected to SIRGAS 2000 / UTM 25S.
The same, pinned
--pin keeps every municipality at its point of the map, over the outlines, and bends the segments to 0°, 45° and 90°; with --corners smooth each bend is an arc. It reads like the schematic and is still the map of the region.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios.json --name rmr-posicoes --title "" --pin --corners smooth --corner-radius 12 --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same, one line per part of the region where the journey starts
The data has no mode of transport. Each journey takes as category the part of the region where it starts: Recife, Norte (north), Oeste (west) or Sul (south) (tools/rmr_linhas.py), and the corridors become four parallel lines. Pinned, smooth corners and square places.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios_linhas.json --name rmr-linhas --title "" --pin --corners smooth --corner-radius 12 --place-shape square --line-colours "#1F77B4,#2CA02C,#C9372C,#E66100" --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same lines, horizontal and vertical pieces alone
The same lines with --ortho and bevelled corners.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios_linhas.json --name rmr-linhas-orto --title "" --ortho --corners bevel --corner-radius 8 --place-shape square --line-colours "#1F77B4,#2CA02C,#C9372C,#E66100" --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same lines, on the dark theme
The same lines with --theme dark and colours chosen for the dark paper.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios_linhas.json --name rmr-linhas-escuro --title "" --pin --corners smooth --corner-radius 12 --place-shape square --theme dark --line-colours "#56B4E9,#4CC38A,#FF6B5C,#E69F00" --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same, as rails on the dark theme
Same computation, another style: each class becomes a bundle of thin rails (class c, c + 1 rails) on dark paper.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios.json --name rmr-trilhos-escuro --title "" --theme dark --stroke rails --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
The same, with both directions side by side
One lane per direction, keeping right, each with the class of its own volume: the asymmetry between the two directions shows. In a dense centre the lanes are still too wide.
37% of the volume in 15 segments · 63% internal · 0% left out. 15 places, 102 pairs (102 routed); mean detour 1.03, largest 3.70.
milkflow rmr_municipios.json --name rmr-sentidos --title "" --directions split --lang en
FlowSpec (JSON)Program summaryInput data
Same source.
Over a map (MapLibre GL)
These maps are the only pages of the site that use the network: they load MapLibre GL and the OpenFreeMap base map. They are made by tools/maplibre.py from the FlowSpec the program writes; switch between the geographic drawing and the pinned one (--pin).
Synthetic city, grouped
The invented city of How it works, where the method is explained step by step: 36 places, some merged into three groups. Corridors, and the same as an octilinear schematic map.
69% of the volume in 37 segments · 31% internal · 0% left out. 30 places, 468 pairs (468 routed); mean detour 1.16, largest 5.97.
milkflow cidade.json --name cidade --title "" --group --schematic --html --lang en
Interactive pageFlowSpec (JSON)Program summaryInput data
Synthetic data, from a gravity model (site/tools/figuras).