% Generation vs Peak Demand clc;clear; yr=[ 2010 2011 2012 2013 2014 2015 2016] mg=[4698.5 4925.50 5999.00 6254.00 6886.00 7349.00 9036.00] pd=[6454 6765 7518 8349 9268 10283 11405] a=plot(yr,mg,'-ob','LineWidth',3,'MarkerSize',10,'MarkerFaceColor',[0,0,1]) hold on b=plot(yr,pd,'-sr','LineWidth',3,'MarkerSize',10,'MarkerFaceColor',[1,0,0]) hold off ax=gca; ax.XTick=[ 2010 2011 2012 2013 2014 2015 2016] ax.XTickLabel=[{'2010','2011','2012','2013','2014','2015','2016'}] xlabel('Year') ylabel('Power (Megawatt) ') %title('Comparison between maximum power generation & peak demand') legend('Maximum generation','Peak demand') set(gca,'FontSize',25,'FontWeight','bold'); ax.XAxis.LineWidth =3; ax.XAxis.Color = 'k'; ax.YAxis.LineWidth =3; ax.YAxis.Color = 'k'; %grid off,'MarkerEdgeColor','k' %,'MarkerEdgeColor','k','MarkerFaceColor',[1,0,0] ,'MarkerFaceColor',[0,0,0]