파일:Population of Japan by generation.svg

원본 파일(SVG 파일, 실제 크기 630 × 540 픽셀, 파일 크기: 125 KB)

이 파일은 최신 정보를 받아서 업데이트될 가능성이 있습니다.
새로운 업데이트가 반영되는 것 없이, 특정 판의 파일을 사용한 경우에는, 필요한 판을 다른 파일로서 업로드해주세요.

파일 설명

설명
English: Population of Japan by generation
날짜
출처 자작, Data from Japan Population Estimates , (e-stat)
https://www.e-stat.go.jp/en/stat-search/files?page=1&toukei=00200524&tstat=000000090001
저자 Yuasan
저작권
(이 파일을 인용하기)
CC-0

라이선스

나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
Creative Commons CC-Zero 이 파일은 크리에이티브 커먼즈 CC0 1.0 보편적 퍼블릭 도메인 귀속에 따라 이용할 수 있습니다.
저작물에 본 권리증서를 첨부한 자는 법률에서 허용하는 범위 내에서 저작인접권 및 관련된 모든 권리들을 포함하여 저작권법에 따라 전 세계적으로 해당 저작물에 대해 자신이 갖는 일체의 권리를 포기함으로써 저작물을 퍼블릭 도메인으로 양도하였습니다. 저작권자의 허락을 구하지 않아도 이 저작물을 상업적인 목적을 포함하여 모든 목적으로 복제, 수정·변경, 배포, 공연·실연할 수 있습니다.

graph data

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker

df = pd.read_csv("data.tsv", index_col=0 ,sep = "\t")
df = df.div(10)

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

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

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

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

#age / year
for i in df.index:
	if i % 5 == 0 :
		ax[0].text(-2.5, i-0.5, i ,fontsize=8)
		ax[1].text(-15, i-0.5, "/ %d"%(2022-i) ,fontsize=8)

#Post-war	1939-1945
ax[0].axhspan(77,83, color="#eaeaea",zorder=-1)	
ax[1].axhspan(77,83, color="#eaeaea",zorder=-1)	
ax[0].annotate("Post-war", (120, 80) ,color="#DD1F30") 

#dankai 1947-1950
ax[0].axhspan(73,76, color="#FFFD8C",zorder=-1)	
ax[1].axhspan(73,76, color="#FFFD8C",zorder=-1)	
ax[0].annotate("Dankai", (129, 73) ,color="#DD1F30") 

#danso 1951-1960
ax[0].axhspan(62,71, color="#efffb7",zorder=-1)	
ax[1].axhspan(62,71, color="#efffb7",zorder=-1)	
ax[0].annotate("Danso", (120, 65) ,color="#DD1F30") 

ax[0].annotate("Shin-Jinrui", (120, 57) ,color="#DD1F30") 

# dankai-jr  1971-1974
ax[0].axhspan(49,52, color="#FFFD8C",zorder=-1)	
ax[1].axhspan(49,52, color="#FFFD8C",zorder=-1)	
ax[0].annotate("Dankai Jr.", (129, 50) ,color="#DD1F30") 

# post-dankai-jr  1975-1981
ax[0].axhspan(42,48, color="#efffb7",zorder=-1)	
ax[1].axhspan(42,48, color="#efffb7",zorder=-1)	
ax[0].annotate("Post Dankai Jr.", (129, 43) ,color="#DD1F30") 

# danso Jr 1976-1985
ax[0].annotate("Post Danso Jr.", (120, 38) ,color="#DD1F30") 

# shinjinrui Jr 1986-1995
ax[0].axhspan(27,36, color="#FFFD8C",zorder=-1)	
ax[1].axhspan(27,36, color="#FFFD8C",zorder=-1)	
ax[0].annotate("Shin-Jinrui Jr.", (120, 30) ,color="#DD1F30") 


ax[1].set_xlabel('10,000 person',loc="right")
plt.suptitle("Population of Japan by generation (2022-10)", fontsize=14)

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

plt.savefig("image.svg")

설명

이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
Population of Japan by generation

이 파일에 묘사된 항목

다음을 묘사함

image/svg+xml

파일 역사

날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

날짜/시간섬네일크기사용자설명
현재2023년 7월 21일 (금) 22:412023년 7월 21일 (금) 22:41 판의 섬네일630 × 540 (125 KB)Yuasanadd gens
2023년 7월 18일 (화) 02:352023년 7월 18일 (화) 02:35 판의 섬네일630 × 540 (117 KB)Yuasanfix
2023년 7월 18일 (화) 02:312023년 7월 18일 (화) 02:31 판의 섬네일630 × 540 (117 KB)Yuasanfix
2023년 7월 18일 (화) 01:002023년 7월 18일 (화) 01:00 판의 섬네일720 × 540 (111 KB)YuasanUploaded own work with UploadWizard

다음 문서 1개가 이 파일을 사용하고 있습니다:

이 파일을 사용하고 있는 모든 위키의 문서 목록

다음 위키에서 이 파일을 사용하고 있습니다:

메타데이터