How to turn off anti-aliasing in figure text (legend, axes label) on Matlab R2014b ?

10 次查看(过去 30 天)
I know that antialiasing of figure data points can be switched off "set(gcf,'GraphicsSmoothing','off')" on Matlab R2014b. But the text in figure legends and axis labels remain antialiased. This is especially noticeable when I export the figure to PNG/JPG. Does anybody know how I can switch antialiasing off for figure fonts? I would like to switch antialiasing off for every exportable object in the figure window. Thank you in advance.

回答(1 个)

Deep
Deep 2024-11-22,3:54
Antialiasing for axes can be turned off globally as demonstrated in this MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/159065-how-to-change-the-default-settings-for-anti-aliasing-in-matlab-r2014b.
Unfortunately, there appears to be no way to control antialiasing globally for legend objects. As a workaround, the solution provided in this MATLAB Answer works for me in MATLAB R2014b: https://www.mathworks.com/matlabcentral/answers/212630-how-can-i-disable-font-smoothing-within-a-legend.

类别

Help CenterFile Exchange 中查找有关 Legend 的更多信息

标签

产品


版本

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by