File:Revenue of Government 2020 in OECD.svg

Original file(SVG file, nominally 1,080 × 540 pixels, file size: 206 KB)

Captions

Captions

Revenue of Government 2020 in OECD

Summary

edit
Description
English: Revenue of Government 2020 in OECD
Date
Source Own work, Data from OECD Revenue
https://stats.oecd.org/Index.aspx?DataSetCode=RS_GBL#
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 as mpl
from cycler import cycler
import matplotlib.pyplot as plt
import pandas as pd

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

mpl.rcParams['axes.xmargin'] = 0.02

fig, ax = plt.subplots(figsize=(12, 6))
for i in range( len(df) ):
	ax.bar(df.columns, df.iloc[i] , width=0.7, bottom=df.iloc[:i].sum())

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']

plt.subplots_adjust(left=0.06, bottom=0.26, right=0.98, top=0.93)

plt.title("Revenue of Government 2020 (OECD Revenue)", fontsize=16)
plt.tick_params(labelsize=10, pad=4)

ax.legend(df.index, fontsize=9, ncol=3, loc='center' ,bbox_to_anchor=(0., -0.34, 1, 0.102) , facecolor="#dddddd"
	, title_fontsize=9)
ax.set_axisbelow(True)

plt.xticks(df.columns, rotation=45, size=9)
plt.yticks(fontsize=9)
plt.ylabel("Tax revenue as % of GDP", size=11)
plt.ylim([0,50])

ax.minorticks_on()
plt.grid(which='major',color='#999999',linestyle='-', axis="y")
plt.grid(which='minor',color='#dddddd',linestyle='--', axis="y")

plt.savefig("image.svg")

File history

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

Date/TimeThumbnailDimensionsUserComment
current07:44, 14 July 2023Thumbnail for version as of 07:44, 14 July 20231,080 × 540 (206 KB)Yuasan (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

  • Usage on ja.wikipedia.org

Metadata