fig.savefig(figdir+'/pie-'+sector_thing+'_in_'+scenarios_names[scenario_index]+'_scenario_as_'+plotType+' for country '+country_codes_3[country_index]+'.png')
fig.savefig(figdir+'/pie-'+sector_thing+'_in_'+scenarios_names[scenario_index]+'_scenario_as_'+plotType+' for country '+country_codes_3[country_index]+'.pdf')
plt.close(fig)
#%% function pie charts real output per sector only rel diff