File:Ghg with LULUCF bar chart Turkey.svg

Summary

Description
English: Net greenhouse gas emissions by Turkey by year from 1990
Date
Source Own work
Author Chidgk1
SVG development
InfoField
Source code
InfoField

Python code

Source code
lang = "en"
#lang = "tr"

import numpy as np
import matplotlib.pyplot as plt
import sys
fig = plt.figure()
 
# Data from https://di.unfccc.int/detailed_data_by_party
# Select Turkey, All Years, Totals, Aggregate GHG, Mt CO2 equivalent
# Cut and paste in here: Total GHG emissions INCLUDING LULUCF
# Older figures are sometimes revised so maybe worth recopying them all occasionally 
# However new data is likely to be released first at https://unfccc.int/ghg-inventories-annex-i-parties/2021
ghg =  [ 163.4, 169.9, 175.9, 184.1, 176.7, 190.2, 209.5, 216.9, 217.7, 213.7, 237.3, 215.7, 213.6, 231.0, 241.3, 262.5, 283.4, 317.0, 318.4, 322.7, 325.2, 350.5, 372.5, 362.5, 380.5, 375.3, 401.8, 423.9, 426.4]
year = ('1990','1991','1992','1993','1994','1995','1996','1997','1998','1999','2000','2001','2002','2003','2004','2005','2006','2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018')
y_pos = np.arange(len(year))

# Set font size as default was a bit small to read
fontsize = 14

if lang == "en":
 plt.title ("Greenhouse gases emitted in Turkey (net)", fontsize = fontsize)
 plt.ylabel("Megatonnes")
elif lang == "tr":
 plt.title (" Needs translating",  fontsize = fontsize)
 plt.ylabel("Megatonne")
else:
 print("Unknown language " + lang)
 sys.exit()
 
# Create bars
plt.bar(y_pos, ghg, color="grey")
 
# Create names on the x-axis
plt.xticks(rotation=45)
plt.xticks(y_pos, year)

# Save graphic
plt.savefig('ghg_with_LULUCF_bar_chart_Turkey.svg')
 
# Show graphic
plt.show()

Licensing

I, the copyright holder of this work, hereby publish 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.
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#Ghg%20with%20LULUCF%20bar%20chart%20Turkey.svg
Category:Self-published work Category:Greenhouse gas emissions by Turkey Category:Environment of Turkey
Category:CC-BY-SA-4.0 Category:Environment of Turkey Category:Greenhouse gas emissions by Turkey Category:Self-published work Category:Valid SVG created with Matplotlib code