File:Time off allocate in OECD.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

Captions

Captions

Time off allocate in OECD , 15-64 age
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: Time off allocate in OECD , 15-64 age
Date
Source Own work, Data from OECD stat.
https://stats.oecd.org/Index.aspx?DataSetCode=TIME_USE#
Author Yuasan
Permission
(Reusing this file)
CC-0

Graph data[edit]

 import matplotlib.pyplot as plt
 import pandas as pd
 
 df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
 
 df["s"] = df[["Paid work or study","Unpaid work"]].sum(axis=1)
 df = df.sort_values(by=["s"], ascending=True)
 df = df.drop("s", axis=1)
 
 fig, ax = plt.subplots(figsize=(16, 8))
 ax.bar(df.index, df["Paid work or study"] , color="#D676AB", width=0.7)
 ax.bar(df.index, df["Unpaid work"], color="#E69717", width=0.7, bottom=df["Paid work or study"] )
 ax.bar(df.index, df["Personal care"] , color="#5E95CD", width=0.7, bottom=df["Paid work or study"] + df["Unpaid work"] )
 ax.bar(df.index, df["Leisure"], color="#9BBB59", width=0.7, bottom=df["Paid work or study"] + df["Unpaid work"] + df["Personal care"] )
 ax.bar(df.index, df["Other"], color="#999999", width=0.7, bottom=df["Paid work or study"] + df["Unpaid work"] + df["Personal care"]+ df["Leisure"] )
 
 ax.legend(df.columns, fontsize=12, ncol=5, loc='center' ,bbox_to_anchor=(0., -0.23, 1., .102) )
 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("Time off for 15-64 age, 2020 or Latest (OECD stat)", fontsize=26)
 plt.tick_params(labelsize=10, pad=4)
 plt.ylabel("Minutes allocate in day", size=15)
 
 plt.xticks(rotation=60)
 plt.yticks(fontsize=13)
 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
current11:36, 14 September 2022Thumbnail for version as of 11:36, 14 September 20221,440 × 720 (107 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