File:Consumer Price index of Japan, comparison year.svg

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

Original file (SVG file, nominally 1,080 × 360 pixels, file size: 120 KB)

Captions

Captions

Add a one-line explanation of what this file represents
This file may be updated to reflect new information.
If you wish to use a specific version of the file without it being overwritten, please upload the required version as a separate file.

Summary

[edit]
Description
日本語: Consumer Price index of Japan, compariosn previous year, 1980-
Date
Source Own workData from OECD stat.
https://stats.oecd.org/Index.aspx?DataSetCode=PRICES_CPI
Author Yuasan
Permission
(Reusing this file)
CC-0

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.

graph data

[edit]
import matplotlib.pyplot as plt
from cycler import cycler
import pandas as pd

df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
df = df.T
df1 = df.reindex(columns=['All items'])

fig, ax = plt.subplots(figsize=(12, 4))
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans']

plt.subplots_adjust(left=0.07, bottom=0.18, right=0.96, top=0.92)

ax.set_prop_cycle( plt.rcParams['axes.prop_cycle'] ) 
ax.plot(df)
ax.fill_between( df1.index ,0, df1["All items"].values,  color="lightblue", alpha=0.5)
ax.set_axisbelow(True)
ax.legend(df.columns, fontsize=8, ncol=6, loc='center' ,bbox_to_anchor=(0, -0.25, 1, 0.11) )

plt.title("Consumer price index of Japan, COICOP 1999 (OECD)", fontsize=16)
plt.tick_params(labelsize=9, pad=4)
plt.ylabel("% change from the previous year", fontsize=10)
plt.xticks(df.index, rotation=60, fontsize=7)
plt.yticks(fontsize=10)
plt.ylim([-2,4])

plt.minorticks_on()
plt.grid(which='major',color='#999999',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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current04:14, 22 December 2022Thumbnail for version as of 04:14, 22 December 20221,080 × 360 (120 KB)Yuasan (talk | contribs)stretch
03:26, 22 December 2022Thumbnail for version as of 03:26, 22 December 20221,080 × 450 (120 KB)Yuasan (talk | contribs)stretch
03:06, 22 December 2022Thumbnail for version as of 03:06, 22 December 20221,080 × 720 (123 KB)Yuasan (talk | contribs)2021
05:17, 10 November 2014Thumbnail for version as of 05:17, 10 November 2014757 × 477 (44 KB)Yuasan (talk | contribs)User created page with UploadWizard

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata