Jump to content

File:Population Pyramids of Japan (Projections 2065,IPSS).svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

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

Summary

Description
English: Population Pyramids of Japan (Projections 2065,IPSS), Middle-birth,Middle-mortality scinario
Date
Source Own work
Author

Yuasan, Data from National Institute of Population and Social Security Research (IPSS)

https://www.ipss.go.jp/pp-zenkoku/j/zenkoku2017/pp_zenkoku2017.asp
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 numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker

df = pd.read_csv("data2.tsv", index_col=0 ,sep = "\t")

fig, ax = plt.subplots(ncols=2, figsize=(8,6) )
plt.subplots_adjust(left=0.02, bottom=0.1, right=0.98, top=0.90)

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']

# Man
ax[0].barh(df.index, df['Man'], color='#ADD1E9', height=0.8, label='Man')
ax[0].yaxis.tick_right()
ax[1].yaxis.set_major_locator(ticker.MultipleLocator(5))
ax[0].set_xlim([650,0])
ax[0].xaxis.set_major_locator(ticker.MultipleLocator(50))
ax[0].yaxis.set_major_locator(ticker.MultipleLocator(5))
ax[0].tick_params(axis='x', labelsize=8, rotation=15)
ax[0].tick_params(axis='y', labelsize=8)
ax[0].set_axisbelow(True)
ax[0].grid(True, which='major',color='#eeeeee',linestyle='-', axis="x")

#Woman
ax[1].barh(df.index, df['Woman'], color='#EED4D4', height=0.8, label='Woman')
ax[1].set_xlim([0,650])
ax[1].xaxis.set_major_locator(ticker.MultipleLocator(50))
ax[1].yaxis.set_major_locator(ticker.MultipleLocator(5))
ax[1].tick_params(axis='x', labelsize=8, rotation=15)
ax[1].tick_params(axis='y', labelsize=8)
ax[1].set_axisbelow(True)
ax[1].grid(True, which='major',color='#eeeeee',linestyle='-', axis="x")

ax[1].set_xlabel('1000 person',loc="right")
plt.suptitle("Population Projections for Japan 2065 (IPSS,2017)\n (Middle-birth,Middle-mortality scinario)", fontsize=14)

fig.legend( facecolor="#eeeeee" , ncol=2, loc='lower center')

plt.savefig("image.svg")

Captions

Population Pyramids of Japan (Projections 2065,IPSS)

Items portrayed in this file

depicts

13 February 2023

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current13:11, 14 February 2023Thumbnail for version as of 13:11, 14 February 2023720 × 540 (118 KB)YuasanUploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata