Keywords: Japan Electricity Production 2009.svg en Japan's electricity generation by fuel source in 2009 Graph based on data given in Eliza Strickland Can Japan phase out nuclear power IEEE Spectrum 11 12 2012 page 11 Numerical data based on International Energy Agency Energy Balances of OECD Countries 2010 Edition This graph is based on data from a public domain PNG graph made in 2012 by Zureks 2015-12-01 own Douglas Perkins other versions The code used to generate this graph is as follows <pre> /usr/bin/env python from matplotlib import pyplot from matplotlib import ticker from matplotlib import numpy This generates a pie graph showing Japan's electricity production in 2009 See also Can Japan phase out nuclear power by Eliza Strickland IEEE Spectrum 11 12 2012 page 11 https //commons wikimedia org/wiki/File Japan_electricity_generation_2009 png This file was written by Douglas Perkins It is released under a Creative Commons Zero 1 0 license https //creativecommons org/publicdomain/zero/1 0/ data Oil 8 7 Hydro 7 8 Other 2 9 Gas 27 2 Nuclear 26 7 Coal 26 7 sources d0 for d in data times d1 for d in data colors 'silver' 'cyan' 'lime' 'darkorange' 'yellow' 'magenta' 'silver' Make a pie graph pyplot figure num 1 figsize 6 6 pyplot title Japan Electricity Generation 2009 pyplot pie times labels sources autopct ' 1 1f ' colors colors pctdistance 0 85 startangle -84 pyplot axis 'equal' pyplot savefig 'Japan Electricity Production 2009 svg' format 'svg' bbox_inches 'tight' </pre> cc-zero Energy in Japan Uploaded with UploadWizard |