Debian Codegraph @

addons/geoplot/examples/us_states_json.inp

raw
1 open us-states.geojson --quiet --frompkg=geoplot
2
3 join statepop.gdt population --ikey=postal --okey=Code
4 print -o name postal population
5
6 # cut out Hawaii and Alaska
7 smpl postal != "HI" && postal != "AK" --restrict
8
9 bundle options = null
10 options.plotfile = "us_states_json.plt"
11 options.height = 500
12
13 outlines_only = 1
14
15 if outlines_only
16 geoplot(null, options)
17 else
18 # show population levels in shades of blue
19 options.palette = "blues"
20 options.title = "US states, population (lower 48)"
21 geoplot(population, options)
22 endif