Skip to content

decarbonizenews/energygraph

Repository files navigation

energygraph

Code used to create infographics on energy vs. income.

Income/Energy Infographic

For context, see: Misleading Logarithmic Scales and the Disregard for Energy Efficiency

Interactive and zoomable versions can be found here.

data

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

usage examples

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

author

Created by Hanno Böck for the Industry Decarbonization Newsletter.