Fixing figure size to match fontsize
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Sulaymon Eshkabilov
el 31 de Oct. de 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 comentarios
Ver también
Categorías
Más información sobre Subplots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!