File:Health expenditure and Life expectancy in OECD.svg

Original file(SVG file, nominally 720 × 720 pixels, file size: 103 KB)

Captions

Captions

Health expenditure and Life expectancy in 2018
This file may be updated to reflect new information.
If you wish to use a specific version of the file without new updates being mirrored, please upload the required version as a separate file.

Summary

edit
Description
English: Health expenditure and Life expectancy in 2018
Date
Source

Own work, Data from OECD Health stat
https://stats.oecd.org/Index.aspx?DataSetCode=SHA#

https://stats.oecd.org/index.aspx?queryid=30114#
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
import matplotlib.ticker as ticker
import matplotlib.cm as cm 

df1 = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
df2 = pd.read_csv("data2.tsv", index_col=0 , sep = "\t")

df = pd.merge(df1, df2, on='Country', how='outer')

fig, ax = plt.subplots(figsize=(8, 8))
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']

plt.subplots_adjust(left=0.1, bottom=0.1, right=0.97, top=0.95)

cmap = cm.get_cmap('tab20b')
i = 0
for k, v in df.iterrows():
    plt.scatter(v[0] , v[1] , color=cmap(i) )
    ax.annotate(k, xy=(v[0]+0.2,v[1]+0.2), color=cmap(i) , size=10, alpha=0.8)
    i = 0 if i>20 else i+1
    
plt.title("Health expenditure and Life expectancy 2018 (OECD Health Statistics)", fontsize=16)
plt.ylim([74,85])

plt.xlabel("Health expenditure per person (PPPUSD)", fontsize=12)
plt.ylabel("Life expectancy at birth (Age)", fontsize=12)
plt.xticks(fontsize=8)
plt.yticks(fontsize=8)

ax.xaxis.set_major_locator(ticker.MultipleLocator(1000))
ax.yaxis.set_major_locator(ticker.MultipleLocator(1))

ax.set_axisbelow(True)
plt.grid(which='major',color='#eeeeee',linestyle='-', axis="x", zorder=-1)
plt.grid(which='major',color='#eeeeee',linestyle='-', axis="y", zorder=-1)

plt.savefig("image.svg")

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:26, 28 June 2023Thumbnail for version as of 17:26, 28 June 2023720 × 720 (103 KB)Yuasan (talk | contribs)fix
17:25, 28 June 2023Thumbnail for version as of 17:25, 28 June 2023720 × 720 (103 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