필터 지우기
필터 지우기

How to display Chinese character hints correctly

조회 수: 19 (최근 30일)
宗文
宗文 2023년 10월 9일
댓글: 宗文 2023년 10월 21일
When I move my mouse over the DataTip gadget above the graph box, it appears with several small boxes instead of Chinese prompts that should appear.

답변 (1개)

T.Nikhil kumar
T.Nikhil kumar 2023년 10월 16일
Hello!
I understand that you want to know how to display Chinese script when you hover over the “Data Tip” icon above the graph instead of small boxes.
The expected behaviour is that the prompt should show ”Data Tips, in Chinese, when you hover over the “Data Tip” icon as shown in the figure below.
I would suggest you ensure that the character encoding settings in MATLAB are set correctly. The default character encoding can be set to ‘UTF-8’ which supports Chinese characters as well. You can use the following command the set its value:
feature('DefaultCharacterSet', 'UTF-8');
You can also try to set the ‘DefaultTextFontName’ property to a font that supports Chinese characters, such as Arial Unicode MS or SimSun.
set(0,'DefaultTextFontName','SimSun');
You can refer to the following documentation to understand more about setting different default fonts:
You can also try out a workaround as proposed in this documentation:
Hope this resolves your query!
  댓글 수: 2
宗文
宗文 2023년 10월 18일
I fixed the
title ('中文标题')
display problem as you did, but the axtoolbar Chinese hint still didn't solve it.
宗文
宗文 2023년 10월 21일
After I replaced the MATLAB desktop, the problem was solved.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by