File:OECD health expenditure per capita by country.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,440 × 720 pixels, file size: 105 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description Health expenditure and financing by country. Total health expenditure per capita in US dollars (PPP).
    Date
    Source

    Own work using:

    Author Yuasan

    Graph data

    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)
    
    fig, ax = plt.subplots(figsize=(16, 8))
    ax.bar(df.index, df["Government/compulsory"] , color="#5E95CD", width=0.7)
    ax.bar(df.index, df["Voluntary payment"], color="#9BBB59", width=0.7, bottom=df["Government/compulsory"] )
    ax.bar(df.index, df["Household out-of-pocket"], color="#D676AB", width=0.7 , bottom=df["Government/compulsory"]+df["Voluntary payment"] )
    
    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.08, bottom=0.15, right=0.99, top=0.9)
    
    plt.title("Health expenditure per capita, 2020 (OECD Health)", fontsize=26)
    plt.tick_params(labelsize=10, pad=4)
    plt.ylabel("PPPUSD", size=15)
    plt.xticks(rotation=60)
    plt.yticks(fontsize=13)
    plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")
    
    plt.savefig("image.svg")
    

    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.

    Any autoconfirmed user can overwrite this file from the same source. Please ensure that overwrites comply with the guideline.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    7 April 2014

    image/svg+xml

    107,048 byte

    a20932a3da908266090977852b7478c368e9bfd5

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current13:23, 1 September 2022Thumbnail for version as of 13:23, 1 September 20221,440 × 720 (105 KB)wikimediacommons>Yuasanfont fix

    There are no pages that use this file.