make a effective figure in python
plt.close('all')
fig, ax = plt.subplots()
for j,series in enumerate(df.columns[:-2]):
if(series=='UK'):
alphaVal = 1.
linethick=5
else:
alphaVal = 0.6
linethick = 3.5
ax.plot(df[series].index,
df[series]/100.,
color=colourWheel[j%len(colourWheel)],
linestyle = '-',
dashes=dashesStyles[j%len(dashesStyles)],
lw=linethick,
label=series,
alpha=alphaVal)
ax.set_xlabel('')
ax.yaxis.set_major_formatter(ScalarFormatter())
ax.yaxis.major.formatter._useMathText = True
ax.yaxis.set_minor_locator( AutoMinorLocator(5))
ax.xaxis.set_minor_locator( AutoMinorLocator(5))
ax.yaxis.set_label_coords(0.63,1.01)
ax.yaxis.tick_right()
nameOfPlot = 'GDP per hour (constant prices, indexed to 2007)'
plt.ylabel(nameOfPlot,rotation=0)
ax.legend(frameon=False, loc='upper left',ncol=2,handlelength=4)
plt.savefig(os.path.join(dirFile,'ProdCountries.pdf'),dpi=300)
plt.show()