lang="en"#lang = "tr"years=['2020','2030','2053']counts=[524,700,0]importmatplotlib.pyplotaspltfig,ax=plt.subplots()iflang=="en":ax.set_title("Latest greenhouse gases emitted in Turkey and targets",fontsize='large')ax.set_ylabel("Million metric tons of carbon dioxide equivalent")ax.set_xlabel('Source: https://www.bbc.com/turkce/articles/ceq20288wglo',fontsize='small',color='grey')eliflang=="tr":ax.set_title("Türkiye’de en son sera gazı emisyonu ve amaçları",fontsize='large')ax.set_ylabel("Milyon ton karbon dioksit eşdeğer")ax.set_xlabel('Kaynak: https://www.bbc.com/turkce/articles/ceq20288wglo',fontsize='small',color='grey')else:print("Unknown language "+lang)sys.exit()ax.bar(years,counts)# Save graphiciflang=="en":plt.savefig("Greenhouse gas target Turkey.svg")eliflang=="tr":plt.savefig("sera_gazlar_Türkiye_amacları.svg")else:print("Unknown language "+lang)sys.exit()# Show graphicplt.show()
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
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.