How to adjust the position of a title in a subplot
Afficher commentaires plus anciens
So I have the following subplot:

With the following code:
figure
subplot(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 default
xlabel('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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Title dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!