MATLAB from UNIX causes font and bold commands to go useless..any help???

1 次查看(过去 30 天)
set(gca,'linewidth',3)
set(gca,'FontSize', 12);
xticks = get(ax,'XTickLabel');
yticks = get(ax,'YTickLabel');
set(ax,'YTickLabel',yticks,'fontweight','bold')
xlabel(' East West(km)','FontSize',12,'fontweight','bold');
ylabel(' North South (km)','FontSize',13,'fontweight','bold');

回答(1 个)

Walter Roberson
Walter Roberson 2016-2-24
Looks okay to me on OS-X in R2014a. Which version are you using on which OS, and what is it you observe (more specifically.)
Is it possible that the difficulty you are seeing is not in the on-screen representation but rather in PDF files?
  3 个评论
Walter Roberson
Walter Roberson 2016-2-24
In OS-X for R2014a, it looks fine to me for .tif files provided I remember to display them at the same scale as the original (because, for example, print() is of the figure not just the axes). You might want to bump up the default output resolution which can be as low as 72 dpi.
With JPEG files you are always fighting against the problem that JPEG is not good at preserving sharp lines.
With eps, you run into a different issue completely, one that reportedly gets encountered more often with R2014b onwards. That issue is that bold fonts often end up getting substituted. This is some kind of jurisdiction fight between systems and Adobe, something along the lines that Adobe is supposed to be including the common bold fonts by default but fails to do so, and Mathworks does not include the entire font definition because it shouldn't have to. Something like that. See http://www.mathworks.com/matlabcentral/answers/157888-font-problems-when-exporting-as-eps

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by