import matplotlib.pyplot as plt
from cycler import cycler
import pandas as pd
import matplotlib.ticker as ticker
df = pd.read_csv("data.tsv", index_col=0 , sep = "\t")
df1 = df.reindex(columns=['All'])
fig, ax = plt.subplots(figsize=(8, 4))
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.08, bottom=0.08, right=0.96, top=0.91)
ax.plot(df)
ax.legend(df.columns, fontsize=10, ncol=2, loc='upper right', frameon=True, facecolor="#dddddd")
ax.grid(which="both")
ax.set_axisbelow(True)
ax.axhspan(0,1, color="lightblue", alpha=0.6 , zorder=-10)
ax.margins(0.01)
ax.xaxis.set_major_locator(ticker.MultipleLocator(2))
plt.title("The effective job offer rate in Japan (MHLW)", fontsize=16)
plt.tick_params(labelsize=9, pad=4)
plt.tick_params(axis='x', labelsize=8, rotation=40)
plt.ylabel("Job offer ratio", fontsize=13)
plt.yticks(fontsize=11)
plt.ylim([0, 2.5])
plt.minorticks_on()
plt.grid(which='major',color='#cccccc',linestyle='-', axis="x")
plt.grid(which='minor', linestyle='None', axis="x")
plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")
plt.grid(which='minor',color='#eeeeee',linestyle='--', axis="y")
plt.savefig("image.svg")