Blurry text when using text function

조회 수: 3 (최근 30일)
Harry Williams
Harry Williams 2019년 8월 2일
댓글: Harry Williams 2019년 8월 7일
When using the text command to generate a custom legend, the text is extremely blurry:
Capture.PNG
Here's the code I used to generate this text:
text(1362.74, 100, {'{\bf Confidence legend}', ...
'{\color[rgb]{0.47, 0.67, 0.19} High confidence}', ...
'{\color[rgb]{0.3, 0.75, 0.93} Medium confidence}', ...
'{\color[rgb]{0.64, 0.08, 0.18} Low confidence}', ...
'{\color{black} No confidence (white)}'}, 'EdgeColor', 'k')
Is there a way to make the text clearer? I'm using R2019b, but I've had this problem with R2019a as well.
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 8월 2일
Double check that you are using a recent graphics card driver.

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

답변 (1개)

Gaurav Garg
Gaurav Garg 2019년 8월 5일
Hi,
The following could be the possible reasons for blurry text:
  1. Graphics drivers
  2. Screen Resolution
Possible Solutions/Workarounds:
  1. Change the application’s high-DPI scaling mode:
1.1) Right Click on “MATLAB” icon, select “Properties” -> “Compatibility” -> “Change high DPI settings”.
1.2) In the High DPI scaling override area, select Override high DPI scaling behavior, and then try one of the following options:
1.2.1) Application – Disable all Windows scaling settings and only use the app developer's setting. This option was called Disable display scaling on high DPI settings in previous versions of Windows.
1.2.2) System – Overrides the program’s DPI settings and makes it run like it would on a low-DPI display. On a high-DPI display, this will make the program appear blurry.
1.2.3) System (Enhanced) – Windows will try to use enhanced DPI scaling for this program. As a result, some programs will display with crisp text on high-DPI displays. This won't work for all programs.
2. Alternatively, you can also fix scaling for apps in Settings and scale the size between 100% - 500%.
  댓글 수: 1
Harry Williams
Harry Williams 2019년 8월 7일
Thank you for your help Gaurav.
I tried the steps you suggested, and the text is still blurry. After each step I restarted MATLAB but didn't restart my computer.

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

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by