Annotation text box appears fuzzy

When I add an annotation text box (text) to a chart with a legend (data1) and compare the line thickness of the plot area border, the legend border, and the textbox border they are all black with a thickness of 0.5. How do I get the text box border to appear like the other two rather than being fuzzy or thicker?

답변 (1개)

Mathieu NOE
Mathieu NOE 2025년 7월 2일

0 개 추천

hello
according to the doc TextBox - Text box appearance and behavior - MATLAB you can tweak the properties of the box ,
figure
plot(1:10)
t = annotation("textbox");
sz = t.FontSize;
t.FontSize = 12;
t.LineWidth = 2; % example

댓글 수: 2

Thomas
Thomas 2025년 7월 2일
Thank you for the response but this does not answer my question. I am aware the properties can be changed, in particular the line width. My question is, why despite having changed the line width to 0.5 is the textbox line different than the legend and plot area border as i have shown in the picture of the original post.
Mathieu NOE
Mathieu NOE 2025년 7월 2일
hello
sorry if that was obvious for you :)
when I looked at the picture , I had a hard time seeing the thickness diffeerence but maybe it's time for ma to get my eyes checked !
can you share a larger image so the difference may be more visible ?

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

카테고리

도움말 센터File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기

제품

릴리스

R2024b

태그

질문:

2025년 7월 1일

댓글:

2025년 7월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by