File:CO2 emission pie chart.svg

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

Original file (SVG file, nominally 540 × 540 pixels, file size: 76 KB)

Render this image in .

Captions

Captions

Global CO2 gas emissions in the year 2015 by country

Summary

[edit]
Description
Català: Emissions globals de gasos CO2 l'any 2015 per país.
English: Global CO2 gas emissions in the year 2015 by country. EEA is the European Economic Area.
Date
Source Own work
Author Árni Dagur
Permission
(Reusing this file)
Public domain This image of simple geometry is ineligible for copyright and therefore in the public domain, because it consists entirely of information that is common property and contains no original authorship.
Heptagon
Heptagon
Other versions
Other related versions:[edit]
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

#Very slight changes were made in a text editor.

import matplotlib.pyplot as plt

print('Styles:', plt.style.available)
plt.rcdefaults()
plt.style.use('ggplot')
plt.rcParams['font.size'] = 19
plt.rcParams['patch.edgecolor'] = 'black'
plt.rcParams['lines.linewidth'] = 1
plt.figure(figsize=[6,6])

labels = ['China', 'USA', 'EEA', 'India', 'Russia', 'Japan', 'Other']
sizes = [29.3641757, 14.27217116, 9.814753272, 6.774059821, 4.858885975, 3.457132848, 31.458821414]
colours = ['#de2910', 'royalblue', '#0039e6', '#128807', 'gold', '#ffb6c1', 'lightgrey']
angle = 90
explode = (0, 0, 0, 0, 0, 0, 0)
#                            ^-- Change this to 0.1 for an explosion effect.

patches, texts, autotexts = plt.pie(sizes, explode=explode, colors=colours, autopct='%1.1f%%', pctdistance=0.815, labels=labels, labeldistance=1.1, shadow=False, startangle=angle)

for at in autotexts:
    at.set_fontsize(16.21)

plt.axis('equal')
plt.tight_layout()
plt.gca().set_position([0, 0, 1, 1])
plt.gcf().subplots_adjust(bottom=0.15)

plt.savefig('co2_emission_pie_chart.svg')
Translate this file This SVG file contains embedded text that can be translated into your language, using any capable SVG editor, text editor or the SVG Translate tool. For more information see: About translating SVG files.
This file is translated using SVG <switch> elements. All translations are stored in the same file! Learn more.

For most Wikipedia projects, you can embed the file normally (without a lang parameter). The Wikipedia will use its language if the SVG file supports that language. For example, the German Wikipedia will use German if the SVG file has German. To embed this file in a particular language use the lang parameter with the appropriate language code, e.g. [[File:CO2 emission pie chart.svg|lang=en]] for the English version. Do not specify a lang parameter if it is not needed. The parameter may prevent the use of a subsequent translation.

To translate the text into your language, you can use the SVG Translate tool. Alternatively, you can download the file to your computer, add your translations using whatever software you're familiar with, and re-upload it with the same name. You will find help in Graphics Lab if you're not sure how to do this.

(Data source: Emission Database for Global Atmospheric Research)

Please feel free to change the colours and update this image.

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
current00:11, 31 January 2024Thumbnail for version as of 00:11, 31 January 2024540 × 540 (76 KB)Manlleus (talk | contribs)File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for es.
00:02, 31 January 2024Thumbnail for version as of 00:02, 31 January 2024540 × 540 (62 KB)Manlleus (talk | contribs)File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ca.
23:59, 30 January 2024Thumbnail for version as of 23:59, 30 January 2024540 × 540 (37 KB)Manlleus (talk | contribs)fixed text labels for translation
04:17, 8 June 2017Thumbnail for version as of 04:17, 8 June 2017540 × 540 (54 KB)Illegitimate Barrister (talk | contribs)Centering.
04:15, 8 June 2017Thumbnail for version as of 04:15, 8 June 2017540 × 540 (36 KB)Illegitimate Barrister (talk | contribs)WP:NOTUSA
01:34, 8 June 2017Thumbnail for version as of 01:34, 8 June 2017540 × 540 (30 KB)ArniDagur (talk | contribs)fixed wrong upload
01:32, 8 June 2017Thumbnail for version as of 01:32, 8 June 2017540 × 540 (30 KB)ArniDagur (talk | contribs)lines made black and smaller, font size increased, general improvements
00:41, 8 June 2017Thumbnail for version as of 00:41, 8 June 2017720 × 540 (30 KB)ArniDagur (talk | contribs)made font bigger
00:18, 8 June 2017Thumbnail for version as of 00:18, 8 June 2017720 × 540 (30 KB)ArniDagur (talk | contribs)User created page with UploadWizard

File usage on other wikis

The following other wikis use this file:

Metadata