File:OECD Tax revenue.svg

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

Original file (SVG file, nominally 1,440 × 720 pixels, file size: 155 KB)

Captions

Captions

Add a one-line explanation of what this file represents
This file may be updated to reflect new information.
If you wish to use a specific version of the file without it being overwritten, please upload the required version as a separate file.

Summary

[edit]
Description
English: Tax revenue as percentage of GDP (OECD Revenue)
Date
Source https://stats.oecd.org/Index.aspx?DataSetCode=REV
Author Yuasan
Permission
(Reusing this file)
CC-0

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.

graph data

[edit]
import matplotlib.pyplot as plt
import pandas as pd

df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
df = df.fillna(0)
df = df.sort_values(by=["Total"], ascending=True)

fig, ax = plt.subplots(figsize=(16, 8))
ax.bar(df.index, df["Supranational"] , color="#FF0000", width=0.7)
ax.bar(df.index, df["Federal or Central"], color="#6794B7", width=0.7, bottom=df["Supranational"] )
ax.bar(df.index, df["State/Regional"] , color="#D480E5", width=0.7, bottom=df["Supranational"] + df["Federal or Central"] )
ax.bar(df.index, df["Local government"], color="#E69717", width=0.7, bottom=df["Supranational"] + df["Federal or Central"] + df["State/Regional"] )
ax.bar(df.index, df["Social Security Funds"], color="#9BBB59", width=0.7, bottom=df["Supranational"] + df["Federal or Central"] + df["State/Regional"]+ df["Local government"] )

ax.legend(df.columns, fontsize=12, ncol=6, loc='center' ,bbox_to_anchor=(0., -0.23, 1., .102) )
ax.set_axisbelow(True)

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.08, bottom=0.15, right=0.99, top=0.9)

plt.title("Tax revenue as % of GDP,2019 (OECD Revenue)", fontsize=26)
plt.tick_params(labelsize=10, pad=4)
plt.ylabel("% of GDP", size=18)
plt.ylim([0,50])

plt.xticks(rotation=60,fontsize=9)
plt.yticks(fontsize=13)

plt.minorticks_on()
plt.grid(which='major',color='#999999',linestyle='-', axis="y")
plt.grid(which='minor',color='#cccccc',linestyle='--', axis="y")
	
plt.savefig("image.svg")
Any autoconfirmed user can overwrite this file from the same source. Please ensure that overwrites comply with the guideline.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:19, 20 November 2022Thumbnail for version as of 12:19, 20 November 20221,440 × 720 (155 KB)Yuasan (talk | contribs)2019 data
13:35, 23 January 2017Thumbnail for version as of 13:35, 23 January 2017740 × 374 (155 KB)Yuasan (talk | contribs)fix
08:25, 23 January 2017Thumbnail for version as of 08:25, 23 January 2017740 × 374 (140 KB)Yuasan (talk | contribs)2014 year
05:54, 1 February 2016Thumbnail for version as of 05:54, 1 February 2016747 × 395 (118 KB)Yuasan (talk | contribs)fix
04:09, 11 March 2015Thumbnail for version as of 04:09, 11 March 2015747 × 395 (84 KB)Yuasan (talk | contribs)fix
07:20, 4 March 2015Thumbnail for version as of 07:20, 4 March 2015747 × 395 (86 KB)Yuasan (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

Metadata