File:Healthcare expenditures in Japan by Age.svg

原始文件(SVG文件,尺寸为900 × 450像素,文件大小:129 KB)


该文件可能会更新以反映新信息
如果您希望在不镜像新更新的情况下使用该文件的特定版本,请将所需版本作为单独的文件上传。

摘要

描述
English: Healthcare expenditures in Japan by Age (MHLW,2020)
日期
来源 自己的作品, Data from MHLW 保険局調査課,
医療保険に関する基礎資料 ~令和2年度の医療費等の状況~ , p52, 53
作者 Yuasan
授权
(二次使用本文件)
CC-0

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
Creative Commons CC-Zero 本作品采用知识共享CC0 1.0 通用公有领域贡献许可协议授权。
采用本宣告发表本作品的人,已在法律允许的范围内,通过在全世界放弃其对本作品拥有的著作权法规定的所有权利(包括所有相关权利),将本作品贡献至公有领域。您可以复制、修改、传播和表演本作品,将其用于商业目的,无需要求授权。

graph data

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

df1 = pd.read_csv("data.tsv", index_col=0 , sep = "\t").T.div(1000)
df2 = pd.read_csv("consult.tsv", index_col=0 , sep = "\t")
df2 = df2.reindex(columns=['Total'])

fig, ax = plt.subplots(figsize=(10, 5))
ax2 = ax.twinx()

ax.plot(df2, label="Doctor consult", color="#5E95CD")

for i in range( len(df1) ):
	ax2.bar(df1.columns, df1.iloc[i] ,  bottom=df1.iloc[:i].sum(), label=df1.index[i])

lines, labels = ax.get_legend_handles_labels()
lines2, labels2 = ax2.get_legend_handles_labels()
ax2.legend(lines + lines2, labels + labels2, facecolor="#eeeeee" ,ncol=2, fontsize=11,loc='upper left')

ax.set_ylim([0,20])
ax2.set_ylim([0,1600])
ax2.axvspan(14.5, 20.5, color="#dddddd",zorder=-1)		#BG paint

ax.patch.set_alpha(0)
ax.set_zorder(2)
ax2.set_zorder(1)

plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.07, bottom=0.13, right=0.90, top=0.92)

plt.title("Healthcare expenditure of Japan by Age (MHLW,2020)", fontsize=16)
plt.tick_params(labelsize=10, pad=4)
ax.set_xlabel("Age", size=10)
ax.set_ylabel("Doctor consult per person (count)", size=10)
ax2.set_ylabel("Healthcare expenditure per person (1000 JPY)", size=10)

plt.setp(ax.get_xticklabels(), fontsize=8, rotation=45)
plt.setp(ax.get_yticklabels(), fontsize=9 )

ax2.minorticks_on()
ax.set_axisbelow(True)
ax2.set_axisbelow(True)
ax.grid(False, which='both', axis="both")
ax2.grid(True, which='major',color='#cccccc',linestyle='-', axis="y")
ax2.grid(True, which='minor',color='#eeeeee',linestyle='--', axis="y")

plt.savefig("image.svg")

说明

添加一行文字以描述该文件所表现的内容

此文件中描述的项目

描繪內容

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2023年6月25日 (日) 17:032023年6月25日 (日) 17:03版本的缩略图900 × 450(129 KB)Yuasanbg style
2023年6月25日 (日) 16:482023年6月25日 (日) 16:48版本的缩略图900 × 450(128 KB)Yuasan2020 data
2015年5月6日 (三) 11:062015年5月6日 (三) 11:06版本的缩略图657 × 405(87 KB)Yuasanfix
2015年4月27日 (一) 08:052015年4月27日 (一) 08:05版本的缩略图688 × 498(88 KB)YuasanUser created page with UploadWizard

以下页面使用本文件:

全域文件用途

以下其他wiki使用此文件:

元数据