필터 지우기
필터 지우기

How can I disable font smoothing by default for all text , legend, marker, axes object within a plot?

조회 수: 4 (최근 30일)
How can I disable font smoothing by default for all text , legend, marker, axes object within a plot?
Smoothed Text object , legends, Datamarkers, axes labels look very poor and blurry currently.
How can this be turned off by default ?
Don't want to apply this to all figures on a singular base.
Thank you for your help.

답변 (3개)

Naman Bhaia
Naman Bhaia 2019년 2월 26일
You can try the following commands
set(groot,'defaultAxesFontSmoothing', 'off');
set(groot,'defaultTextFontSmoothing', 'off');
And if you want the change to be persistent you can put those two commands in the ‘startup.m’ file.
At this point you can not turn of the font smoothing for legends but it should be available in upcoming version soon.
  댓글 수: 2
UM Moeller
UM Moeller 2019년 2월 26일
Thank you for the answer, but Text in Data Marker still look annoying blurry....
Capture_Matlab.PNG
Naman Bhaia
Naman Bhaia 2019년 2월 26일
Try refrencing the object of the graph you want as a child of the graph as follows:
plot(1:10)
[h,objs] = legend('one')
objs(1).FontSmoothing='off'

댓글을 달려면 로그인하십시오.


UM Moeller
UM Moeller 2019년 2월 26일
This is working on single figure basis, it is not working as a default setting.
Meaning you would have to add code for every single figure, or apply this afterwards, aafter inserting a legend.
How annoying...
My example above is showing a data tip not a legend.
With a data tip your code is not working at all.
What to do ?

UM Moeller
UM Moeller 2019년 3월 1일
Anymore suggestions?

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by