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

11 views (last 30 days)
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.

Answers (1)

Deep
Deep about 17 hours ago
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.

Products


Release

R2014b

Community Treasure Hunt

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

Start Hunting!