Jump to content

File:Social expenditure in OECD.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

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

Summary

Description OECD country Social Expenditure
Date
Source https://stats.oecd.org/Index.aspx?DataSetCode=SOCX_AGG
Author Yuasan
Permission
(Reusing this file)
PD

Licensing

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

import matplotlib.pyplot as plt
import pandas as pd

df=pd.read_csv("data.csv", index_col=[0])
df = pd.concat([df,
     pd.DataFrame(df.sum(axis=1), columns=['Total'])], axis=1)
df = df.sort_values(by=["Total"], ascending=True)

fig, ax = plt.subplots(figsize=(16, 8))
ax.bar(df.index, df["Public"] , color="#5E95CD", width=0.7)
ax.bar(df.index, df["Private"], bottom=df["Public"] , color="#D676AB", width=0.7)
ax.legend(df.columns, fontsize=20)
ax.set_axisbelow(True)

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

plt.title("Social spending in % of GDP, 2015 (OECD SOCx)", fontsize=26)
plt.tick_params(labelsize=9, pad=4)
plt.xticks(rotation=25,)
plt.yticks(fontsize=13)
plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")
plt.show()

see also

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

24 June 2020

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:29, 24 June 2020Thumbnail for version as of 12:29, 24 June 20201,440 × 720 (91 KB)Yuasanfix
15:18, 23 June 2020Thumbnail for version as of 15:18, 23 June 2020512 × 300 (294 KB)Yuasan2015 data
08:04, 27 April 2015Thumbnail for version as of 08:04, 27 April 2015745 × 463 (100 KB)Yuasanfix
08:02, 20 April 2015Thumbnail for version as of 08:02, 20 April 2015745 × 463 (94 KB)Yuasanfix
05:38, 17 November 2014Thumbnail for version as of 05:38, 17 November 2014748 × 416 (15 KB)Yuasanfix
05:55, 31 December 2013Thumbnail for version as of 05:55, 31 December 2013748 × 452 (83 KB)YuasanUser created page with UploadWizard

The following page uses this file:

Global file usage

Metadata