The letter 'f' seems to be cut off in the ylabel of a saved figure
Mostrar comentarios más antiguos
Hi I have noticed that while using the italic font, the letter 'f' seems to be cut off. For example:
a = 1:10;
b = a.^2;
plot(a,b)
xl=xlabel('\it\beta');yl=ylabel('\itf\rm_D_P/\itV\rm_F_M (\itN/mm^3\rm)');
set(gca,'LineWidth',2,'FontSize',20,'FontName','Times New Roman')
set(findobj('Type','line'),'LineWidth',2)
set(xl,'FontSize',30,'FontName','Times New Roman')
set(yl,'FontSize',30,'FontName','Times New Roman')
Here, the ylabel seems to appear fine in matlab. But once you save the figure, it appears differently (cut off). How to go around this problem? One solution that worked was to give a space after \it and a space after the f, such that yl = ylabel('\it f \rm_D_P/\itV\rm_F_M (\itN/mm^3\rm)'); But is there a better solution without giving such extra spaces.
4 comentarios
Azzi Abdelmalek
el 6 de Ag. de 2013
How did you save your figure? * jpg file or fig file, or...?
Sri Vikram Palagummi
el 6 de Ag. de 2013
Jan
el 6 de Ag. de 2013
Please post the command you use for saving. This is an important detail.
Sri Vikram Palagummi
el 6 de Ag. de 2013
Respuestas (1)
David Sanchez
el 6 de Ag. de 2013
0 votos
It all has to do with the way Matlab saves the images. There is no any other way to save the image with your given settings but adding the extra blank space around the "f".
1 comentario
Sri Vikram Palagummi
el 6 de Ag. de 2013
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!