File:Renewable energy by source irena-no.svg

Summary

Description
English: Renewable energy by source, 2011-2020. Norwegian captions. Source for data: IRENA, https://irena.org/publications/2020/Mar/Renewable-Capacity-Statistics-2020
Date
Source Own work
Author Åshild Telle
SVG development
InfoField

Source code

The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
The logo of Matplotlib – comprehensive library for creating static, animated, and interactive visualizations in Python
This media was created with Matplotlib (comprehensive library for creating static, animated, and interactive visualizations in Python)Category:Images with Matplotlib source code
Here is a listing of the source used to create this file.

Deutsch  English  +/−

import numpy as np
import matplotlib.pyplot as plt

hydro = [1056729, 1089846, 1136714, 1175603, 1211620, 1246725, 1272642, 1295025, 1311301, 1331889]
wind = [220019, 266908, 299919, 349300, 416248, 466864, 514374, 563830,  622249, 733276]
solar = [73745, 104015, 139523, 176089, 222213, 296155, 389411, 488739, 587134, 713970]
bio = [71745, 76617, 83855, 89981, 96671, 104454, 110505, 117635, 124076, 126557]
geo = [10134, 10481, 10718, 11159, 11799, 12122, 12677, 13241, 13886, 14050]
marine = [503, 509,  510, 513,  513, 519, 523, 527, 525, 527]

years = [2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020]

colors = ["cornflowerblue", "grey", "khaki", "green", "firebrick", "darkblue"]
labels = ["Vannkraft", "Vindkraft", "Solenergi", "Bioenergi", "Geotermisk energi", "Havenergi"]

accumulated = np.zeros(len(years))

for (source, color, label) in zip([hydro, wind, solar, bio, geo, marine], colors, labels):

    source_gw = 1E-3*np.array(source)

    plt.bar(years, source_gw, bottom=accumulated, color=color, label=label)

    accumulated += np.array(source_gw)

plt.legend()
plt.ylabel("Energi i GW")
plt.savefig("renewable_energy_by_source_irena-no.svg")

Licensing

Åshild Telle, the copyright holder of this work, hereby publishes it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
Attribution:
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#Renewable%20energy%20by%20source%20irena-no.svgCategory:Self-published work
Category:Norwegian-language SVG charts Category:Renewable energy statistics
Category:CC-BY-SA-4.0 Category:Images with Matplotlib source code Category:Norwegian-language SVG charts Category:Renewable energy statistics Category:Self-published work Category:Valid SVG created with Matplotlib