File:Unemployment rate in Japan.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 1,080 × 540 pixels, file size: 124 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
    English: Unemployment rate in Japan
    Date
    Source Own work, Data from OECD Labour Force stats.
    https://stats.oecd.org/Index.aspx?DataSetCode=LFS_SEXAGE_I_R#
    Author Yuasan
    Permission
    (Reusing this file)
    CC-0

    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 matplotlib.ticker as ticker
    from cycler import cycler
    import pandas as pd
    
    df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
    
    df_jp = df[~ df.index.str.contains('G7')]
    df_g7 = df[df.index.str.contains('G7')]
    
    fig, ax = plt.subplots(figsize=(12, 6))
    plt.rcParams['font.family'] = 'sans-serif'
    plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
    ax.set_prop_cycle( plt.rcParams['axes.prop_cycle'])
    
    plt.subplots_adjust(left=0.06, bottom=0.15, right=0.96, top=0.93)
    
    v = df_jp[df_jp.index.str.contains("all-age")].T
    ax.plot(v , linewidth=2 , label=v.columns)
    v = df_jp[df_jp.index.str.contains("15")].T
    ax.plot(v  , linewidth=1, label=v.columns)
    v = df_g7[df_g7.index.str.contains("all-age")].T
    ax.plot(v , linewidth=2, ls=":",  label=v.columns)
    v = df_g7[df_g7.index.str.contains("15")].T 
    ax.plot(v , linewidth=1, ls=":",  label=v.columns)
    
    ax.fill_between( df.columns ,0, df.T["All persons; all-age"].values,  color="lightblue", alpha=0.5, label="")
    
    lines, labels = ax.get_legend_handles_labels()
    ax.legend(lines , labels, fontsize=9, ncol=6, loc='center' ,bbox_to_anchor=(0., -0.18, 1., .102) , facecolor="#eeeeee")
    ax.set_axisbelow(True)
    
    plt.title("Unemployment rate in Japan (OECD Labour Force stat)", fontsize=16)
    plt.tick_params(labelsize=9, pad=4)
    plt.ylabel("Unemployment rate (%) ", fontsize=13)
    plt.xticks(rotation=35, fontsize=7)
    plt.yticks(fontsize=11)
    plt.ylim([0,16])
    ax.xaxis.set_major_locator(ticker.MultipleLocator(2))
    
    plt.minorticks_on()
    plt.grid(which='major',color='#dddddd',linestyle='-', axis="x")
    plt.grid(which='minor', linestyle='None', axis="x")
    plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")
    plt.grid(which='minor',color='#eeeeee',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.

    Captions

    Unemployment rate in Japan

    Items portrayed in this file

    depicts

    28 March 2022

    image/svg+xml

    126,739 byte

    540 pixel

    1,080 pixel

    867aab07bb2f84ca14ca2c6ac86c7375a95d0a5d

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current15:04, 12 July 2023Thumbnail for version as of 15:04, 12 July 20231,080 × 540 (124 KB)wikimediacommons>Yuasan2022

    There are no pages that use this file.