% Loading the previously saved data
nyear = length(2016:2021);
Tmax_me = zeros(1,nyear);
Tmax_me(n) = median(Tmax(year==2015+n));
% Temporal variation of Tmax and Tmax_avg
set(f,'units','centimeters','position',[1,1,13*1.5,7*1.5],'color','w')
plot(year,Tmax,'.','MarkerSize',15)
plot(2016:2021,Tmax_me,'o-r','LineWidth',2,'MarkerFaceColor','r')
xlabel('Year','FontWeight','bold')
ylabel('Tmax','FontWeight','bold')
legend({'Stations','Median'},'Location','northeast')
set(gca,'FontSize',FontSize,'tickdir','out')