그래프 plot 시에 한글 지원 문제

8 ビュー (過去 30 日間)
Minho Choi
Minho Choi 2020 年 6 月 5 日
回答済み: Angelo Yeo 2023 年 12 月 26 日
Matlab R2018b 쓰고 있는 유저입니다.
그래프 plot 시에 한글을 축제목이나 label에 적을 시 정상적으로 출력되지 않는 문제가 있는데요.
어떻게 해결할 수 있을 지 궁금합니다.
  2 件のコメント
madhan ravi
madhan ravi 2020 年 6 月 5 日
Please show the label you are using.
Minho Choi
Minho Choi 2020 年 6 月 10 日
I like to write Korean Language at the title and X/Y label of the figure. But, it seems that it is not working.
If I use Korean Language, only square boxes appear in the figure as above.

サインインしてコメントする。

回答 (1 件)

Angelo Yeo
Angelo Yeo 2023 年 12 月 26 日
Unfortunately, there is no good way to work around problem other than to set the following properties of charts with a set(0, "DefaultX") call in startup.m
set (0, 'defaultUicontrolFontName' , '맑은고딕')
set (0, 'defaultUitableFontName' , '맑은고딕')
set (0, 'defaultAxesFontName' , '맑은고딕')
set (0, 'defaultTextFontName' , '맑은고딕')
set (0, 'defaultUipanelFontName' , '맑은고딕')
But, the ability to set the properties of charts with a set(0, "DefaultX") call in startup.m is not available in Charts like confusionchart (also heatmap, wordcloud, geobubble etc) don't respect the default axes settings because they aren't axes.
Fundamentally, the problem occurs when you have Helvetica font installed on your machine. Once removing the font, it will solve the problem. However, Helvetica is a licensed font which you presumably paid for, either directly, or as part of another application.
What is happening is that the graphics code tries to use Helvetica. If Helvetica is not available we substitute the Java sansserif font. These are "logical" fonts so get mapped to appropriate "physical" fonts on the system. This mapping is handled by fontconfig.properties file. However, if Helvetica is available it will use the installed Helvetica font -- which does not support Korean characters.
If you decide to remove Helvetica font installed on your machine, here is the way to remove to resolve this issue thoroughly.
1. Run CMD as administrator
2. In the Command Prompt, delete the all following Helvetica font names which can be checked in the properties window by right click from each Helvetica fonts under the C:\Windows\Fonts\Helvetica folder.
14461.ttf
14462.ttf
14460.ttf
14459.ttf
13726.ttf
13728.ttf
13729.ttf
13727.ttf
14526.ttf
14528.ttf
14529.ttf
14527.ttf
3. Go to the following registry table of windows Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
4. Change the Data from Helvetica to Arial while keeping the name as Helvetica by right click and choosing Modify.
5.Restart MATLAB to see whether it works.

カテゴリ

Help Center および File Exchange제품 설치 についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!