Fixing figure size to match fontsize
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I'm creating figures for an article. I want to create my figure and save an .eps file, which I did with sucess. Here is a sample of my code.
figure
a=subplot('Position',[xstart+3*xspace+3*xsize zstart xsize zsize])
hold off
image(y11)
title('Intensity','FontSize',17)
set(a,'YTick',[],'XTick',[]);
text(textxp,textyp,'(d)','FontSize',17,'color','w')
My issue is having always the same size of letters in my image as in my article. The article is write on overleaf. I was wondering if there was a way in matlab when I create figure to have this figure have a certain size. If I could something like figure(2.6inch width), than I could call this image in my latex and insert it as 2.6inch wide and the letters would keep the proper size.
Is it clear?
Thank you for any help.
RMT
0 commentaires
Réponses (1)
Sulaymon Eshkabilov
le 31 Oct 2019
hi,
Maybe this one can help you to solve your task:
set(gcf, 'paperpositionmode', 'auto');
print(gcf, '-djpeg', '-r600', 'MYFIG.jpeg') % Saves the current figure in jpeg format
% in 600 resolution size under file name of MYFIG.jpeg
Good luck.
0 commentaires
Voir également
Catégories
En savoir plus sur Subplots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!