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

7 ビュー (過去 30 日間)
Alvin Kho
Alvin Kho 2022 年 11 月 4 日
回答済み: Deep 2024 年 11 月 22 日
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 日
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 Center および File ExchangeLegend についてさらに検索

タグ

製品


リリース

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by