Hi there,
I have 3 subplots and I need to put the real time of the frame at the bottom of the figure. Can I use sgtitle to put the annotation below the plot? If not, is there something better to use?
Thanks!
figure(1)hFig=gcf;ax(1) = subplot(3,1,1);hold onplot_data = flipud(rot90(psi));s = pcolor(plot_data);daspect([1 1 1]);colormap(ax(1), gray);set(s, 'EdgeColor', 'none');colorbarcontour(plot_data, 32, 'black');title("Streamfunction");hold offax(2) = subplot(3,1,2);hold onplot_data = flipud(rot90(omega));s = pcolor(plot_data);daspect([1 1 1]);colormap(ax(2), gray);set(s, 'EdgeColor', 'none');colorbartitle("Vorticity");hold offax(3) = subplot(3,1,3);hold onplot_data = flipud(rot90(temps));s = pcolor(plot_data);daspect([1 1 1]);colormap(ax(3), jet);set(s, 'EdgeColor', 'none');colorbartitle("Temperature");hold offsgt = sgtitle("Test",'VerticalAlignment', 'bottom', 'HorizontalAlignment', 'center');sgt.FontSize = 10;
Best Answer