Code used to create infographics on energy vs. income.
For context, see: Misleading Logarithmic Scales and the Disregard for Energy Efficiency
Interactive and zoomable versions can be found here.
The code uses data from the World Bank (Creative Commons by-4.0) and the US EIA (public domain). A snapshot of the data is stored in a separate repository. You can download and unpack the data to the correct path by running:
./getdata.sh
The python script energygraph will create an infographic and show it in the browser.
It has various parameters that should be largely self-explanatory.
To create the infographic used in the article:
./energygraph --skipsmall=5000000 --hidenames
To plot other values (possible are gdp, energy, electricity, income) and another year:
./energygraph --plotx=gdp --ploty=electricity --year=2019
Created by Hanno Böck for the Industry Decarbonization Newsletter.