File:Social security contributions of Japan.svg

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

Original file (SVG file, nominally 1,080 × 720 pixels, file size: 145 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: Social security contributions of Japan (OECD Revenue Statistics)
Date
Source Own work
Author Yuasan, Data from OECD Revenue Statistics
https://stats.oecd.org/index.aspx?datasetcode=rev#
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
from cycler import cycler
import pandas as pd

df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")

df1 = df.loc['Tax revenue as % of GDP']		# line
df2 = df.loc['Tax revenue as % of total taxation']	# bar

fig, ax = plt.subplots(figsize=(12, 8))
ax2 = ax.twinx()
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.07, bottom=0.15, right=0.96, top=0.90)
plt.setp(ax.get_xticklabels(), fontsize=8)
plt.setp(ax.get_yticklabels(), fontsize=13)

ax.bar(df2.index, df2, color="#FAAA69", width=0.6)
ax.set_axisbelow(True)
ax.tick_params(axis='x', labelrotation=35)
ax.set_ylim([0,50])
ax.set_ylabel("Percentage", fontsize=15)

ax.legend(['% of total taxation'] ,facecolor="#eeeeee" ,fontsize=17,loc='lower right' ,bbox_to_anchor=(0, -0.18, 1, 0) )

ax2.set_prop_cycle( plt.rcParams['axes.prop_cycle'] )
ax2.plot(df1)
ax2.set_ylim([0,50])
ax2.legend(['% of GDP'] ,facecolor="#eeeeee", fontsize=17,loc='lower left' ,bbox_to_anchor=(0, -0.18, 1, 0) )

plt.title("Social security contributions of Japan \n(OECD Revenue Statistics)", fontsize=20)
plt.tick_params(labelsize=9, pad=4)
plt.yticks(fontsize=13)

plt.minorticks_on()
plt.grid(which='major',color='#999999',linestyle='-', axis="y")
plt.grid(which='minor',color='#dddddd',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
current13:08, 9 December 2022Thumbnail for version as of 13:08, 9 December 20221,080 × 720 (145 KB)Yuasan (talk | contribs)fix
13:02, 9 December 2022Thumbnail for version as of 13:02, 9 December 20221,080 × 720 (145 KB)Yuasan (talk | contribs)2020 data
09:33, 26 December 2016Thumbnail for version as of 09:33, 26 December 2016740 × 420 (94 KB)Yuasan (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata