Skip to content

Instantly share code, notes, and snippets.

@Gro-Tsen
Last active October 22, 2020 14:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gro-Tsen/b8ff7b80429dbf450aa3874879a56671 to your computer and use it in GitHub Desktop.
Save Gro-Tsen/b8ff7b80429dbf450aa3874879a56671 to your computer and use it in GitHub Desktop.
20201022.countries-graph
gnuplot << '__EOF__'
set terminal pngcairo size 800,600
set output "/tmp/countries.png"
set logscale y
plot "/tmp/countries.dat" using ($3/$2):($4/$3):($1) with labels point pt 7 offset char -0.5,-1
__EOF__
## Variant:
gnuplot << '__EOF__'
set terminal pngcairo size 800,600
set output "/tmp/countries.png"
set logscale xy
plot "/tmp/countries.dat" using ($3/$2):($4/$2):($1) with labels point pt 7 offset char -0.5,-1 notitle
__EOF__
FR 67.1 975 144
BE 11.5 286 35
CZ 10.7 11 81
DE 83.2 239 32
GR 10.7 5 10
ES 47.3 866 136
IT 60.2 817 78
NL 17.4 154 30
PL 38.0 28 91
RO 19.3 25 66
SE 10.3 99 1
GB 67.0 941 143
CH 8.6 58 8
HU 9.8 14 33
AT 8.9 22 8
PT 10.3 32 16
DK 5.8 17 2
SK 5.5 2 5
BG 7.0 10 17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment