File:Average wages and GDP per hour worked in G7.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: 95 KB)

Captions

Captions

Average wages and GDP per hour worked in G7 countries

Summary[edit]

Description
English: Average wages (Solid line) , GDP per hour worked (Dotted line)
Date
Source

Own work. Data from OECD stat.
https://stats.oecd.org/Index.aspx?DataSetCode=PDB_LV

https://stats.oecd.org/Index.aspx?DataSetCode=AV_AN_WAGE
Author Yuasan

Graph data[edit]

import matplotlib.pyplot as plt
from cycler import cycler
import pandas as pd

df = pd.read_csv("productivity.tsv", index_col=0 , sep = "\t")
df = df.T
df = df.fillna(method = 'ffill') 

df2 = pd.read_csv("wage.tsv", index_col=0 , sep = "\t")
df2 = df2.T
df2 = df2.fillna(method = 'ffill') 

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.90, top=0.93)

ax.set_prop_cycle( plt.rcParams['axes.prop_cycle'] )
ax.plot(df, linewidth=1, linestyle="dashed") 
ax2.plot(df2, linewidth=2)

ax.legend(df.columns, fontsize=9, ncol=10, loc='center' ,bbox_to_anchor=(-0.2, -0.15, 1., .102) )
ax2.legend(df.columns, fontsize=9, ncol=10, loc='center' ,bbox_to_anchor=(0.2, -0.20, 1., .102) )
ax.set_axisbelow(True)

ax.set_ylabel("GDP per hour worked (PPPUSD) - Dotted line", fontsize=8)
ax2.set_ylabel("Average wages (PPPUSD) - Solid line", fontsize=8)

plt.title("Average wages and GDP per hour worked in G7 countries (OECD stats)", fontsize=16)
plt.tick_params(labelsize=9, pad=4)

for tick in ax.get_xticklabels():
    tick.set_rotation(35)
    tick.set_fontsize(8)
plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")

plt.savefig("image.svg")

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
current12:31, 14 August 2021Thumbnail for version as of 12:31, 14 August 20211,080 × 720 (95 KB)Yuasan (talk | contribs)fix
12:27, 14 August 2021Thumbnail for version as of 12:27, 14 August 20211,080 × 720 (95 KB)Yuasan (talk | contribs)fix
12:16, 14 August 2021Thumbnail for version as of 12:16, 14 August 20211,080 × 720 (96 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:

Metadata