TES_historical_time=[2010 2015 2019 2020 ];
TES_historical=[231037 225604 228295 213629];
TES_time=[2030 2035 2040 2045 2050 ];
TES_steps=[215894 209431 205540 202555 200149];
TES_aps=[199887 185881 175659 169372 165899];
TES_sds=[197640 183243 170911 163577 160851];
TES_historical_time2=[2010 2015 2019 2020 ];
TES_historical2=[298652 334447 367223 362481];
TES_time2=[2030 2035 2040 2045 2050 ];
TES_steps2=[433836 461992 484446 503065 515144];
TES_aps2=[431278 456696 473180 480883 485179];
TES_sds2=[383233 389760 391694 393396 399416];
scatter(TES_historical_time, TES_historical,"red") , xlabel('year'), ylabel('total energy supply(TES)'), title('OECD countries')
scatter(TES_time, TES_steps,"blue")
scatter(TES_time, TES_aps,"cyan")
scatter(TES_time,TES_sds,"green"),
scatter(TES_historical_time2, TES_historical2,"red","x") , xlabel('year'), ylabel('total energy supply(TES)'), title('non-OECD countries')
scatter(TES_time2, TES_steps2,"blue","x")
scatter(TES_time2, TES_aps2,"cyan","x")
scatter(TES_time2,TES_sds2,"green","x"), legend({'historical','steps','aps','sds'}), title(legend, 'oecd (O) |non-oecd (X)')