How to turn off anti-aliasing in figure text (legend, axes label) on Matlab R2014b ?
11 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Deep
about 22 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.
0 Comments
See Also
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!