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").T
df = df.interpolate()
fig, ax = plt.subplots(figsize=(10, 6))
plt.rcParams['font.family'] = 'sans-serif'
plt.rcParams['font.sans-serif'] = ['Noto Sans Display']
plt.subplots_adjust(left=0.09, bottom=0.16, right=0.96, top=0.90)
ax.set_prop_cycle( plt.rcParams['axes.prop_cycle'] )
ax.plot(df, lw=2)
ax.legend(df.columns, fontsize=10, ncol=10, loc='center' ,bbox_to_anchor=(0., -0.19, 1, .102) ,facecolor="#eeeeee")
ax.set_axisbelow(True)
ax.xaxis.set_major_locator(ticker.MultipleLocator(2))
ax.margins(0.01)
plt.ylabel("Disposable income Gini", fontsize=12)
plt.ylim([0.25, 0.4])
plt.title("Gini for post taxes and transfers in G7 countries \n(OECD Income Distribution Database)", fontsize=16)
plt.tick_params(labelsize=9, pad=4)
plt.xticks(rotation=35, fontsize=8)
plt.yticks(fontsize=10)
plt.grid(which='major',color='#eeeeee',linestyle='--', axis="x")
plt.grid(which='major',color='#cccccc',linestyle='-', axis="y")
plt.savefig("image.svg")