File:Japan Electricity Production 1980-2014.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 719 × 438 pixels, file size: 55 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: A line graph showing Japan's energy production by type, per year, for 1980-2014. Data drawn from the Energy Information Association.
Date
Source Own work
Author Douglas Perkins


The SVG file was produced using MatPlotLib with the following (also Public Domain) code.

#!/usr/bin/env python

from matplotlib import pyplot
from matplotlib import ticker
from matplotlib import numpy

# This generates a line graph showing the Japan's electricity production.
# Data from the EIA.  1980-2014.
#
# https://commons.wikimedia.org/wiki/File:Electricity_Production_in_Japan.svg
# https://tinyurl.com/eiajapan
# 
#
# 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/

nuclear = [
(1980, 79),
(1981, 83),
(1982, 95),
(1983, 105),
(1984, 127),
(1985, 150),
(1986, 159),
(1987, 189),
(1988, 174),
(1989, 175),
(1990, 192),
(1991, 203),
(1992, 212),
(1993, 237),
(1994, 256),
(1995, 277),
(1996, 287),
(1997, 306),
(1998, 316),
(1999, 301),
(2000, 306),
(2001, 304),
(2002, 280),
(2003, 228),
(2004, 268),
(2005, 281),
(2006, 292),
(2007, 267),
(2008, 241),
(2009, 263),
(2010, 280),
(2011, 156),
(2012, 17),
(2013, 14),
(2014, 0),
]

non_hydro_renewable = [
(1980, 1.1),
(1981, 0.8),
(1982, 9.7),
(1983, 11),
(1984, 12),
(1985, 13),
(1986, 14),
(1987, 15),
(1988, 16),
(1989, 17),
(1990, 12),
(1991, 13),
(1992, 13),
(1993, 13),
(1994, 14),
(1995, 16),
(1996, 17),
(1997, 19),
(1998, 19),
(1999, 19),
(2000, 19),
(2001, 19),
(2002, 21),
(2003, 23),
(2004, 24),
(2005, 29),
(2006, 29),
(2007, 31),
(2008, 27),
(2009, 27),
(2010, 41),
(2011, 43),
(2012, 56),
(2013, 55),
(2014, 68),
]

hydro = [
(1980, 88),
(1981, 87),
(1982, 81),
(1983, 83),
(1984, 73),
(1985, 82),
(1986, 80),
(1987, 74),
(1988, 90),
(1989, 91),
(1990, 88),
(1991, 97),
(1992, 82),
(1993, 95),
(1994, 67),
(1995, 81),
(1996, 80),
(1997, 89),
(1998, 92),
(1999, 86),
(2000, 86),
(2001, 83),
(2002, 82),
(2003, 94),
(2004, 93),
(2005, 76),
(2006, 87),
(2007, 73),
(2008, 76),
(2009, 76),
(2010, 81),
(2011, 82),
(2012, 75),
(2013, 77),
(2014, 81)
]

fossil_fuels = [
(1980, 382),
(1981, 378),
(1982, 368),
(1983, 388),
(1984, 408),
(1985, 395),
(1986, 393),
(1987, 420),
(1988, 449),
(1989, 484),
(1990, 524),
(1991, 533),
(1992, 546),
(1993, 517),
(1994, 580),
(1995, 568),
(1996, 577),
(1997, 578),
(1998, 571),
(1999, 596),
(2000, 583),
(2001, 570),
(2002, 611),
(2003, 640),
(2004, 627),
(2005, 639),
(2006, 634),
(2007, 711),
(2008, 668),
(2009, 616),
(2010, 685),
(2011, 795),
(2012, 863),
(2013, 862),
(2014, 833),
]

years = [d[0] for d in nuclear]
p_nuclear = [d[1] for d in nuclear]
p_non_hydro_renewable = [d[1] for d in non_hydro_renewable]
p_hydro = [d[1] for d in hydro]
p_fossil_fuels = [d[1] for d in fossil_fuels]

# Make a line graph.
linewidth = 2.0
pyplot.figure(num=1, figsize=(9,5))
pyplot.plot(years, p_fossil_fuels, label="coal & natural gas", linewidth=linewidth)
pyplot.plot(years, p_nuclear, label="nuclear", linewidth=linewidth)
pyplot.plot(years, p_hydro, label="hydroelectric", linewidth=linewidth)
pyplot.plot(years, p_non_hydro_renewable, label="renewable (except hydro)", linewidth=linewidth)
pyplot.title('Japan Electricity Production')
pyplot.ylabel('Electricity (TWh)')
pyplot.xlabel('Year')
pyplot.legend(loc=0, prop={'size':12})
pyplot.subplot(111).grid(b=True, axis='both')
pyplot.savefig('Japan Electricity Production 1980-2014.svg', format='svg', bbox_inches='tight')

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:53, 20 November 2016Thumbnail for version as of 12:53, 20 November 2016719 × 438 (55 KB)Douglaspperkins (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata