So I have the following subplot:
With the following code:
figuresubplot(1,2,1)imagesc(im);axis equal;axis off;hold on;plot(position(:,1),position(:,2),'o','MarkerEdgeColor','r','LineWidth',1.5,'MarkerSize',10);title('Detected Particles', 'FontSize',14); histpos = [0.5703,0.2707,0.3347,0.4897];subplot('position',histpos)hist(FWHM, 6)colormap defaultxlabel('FWHM', 'FontSize',16) ylabel('Frequency', 'FontSize',16) set(gca,'FontSize',14);title('Histogram of FWHM Values', 'FontSize',16);
As you can see, the title for the first subplot is in an odd position and I can't figure out why. It doesn't do that when I have it as a regular figure and not a subplot.
Any suggestions for how to fix it?
Thanks
Best Answer