Heatmap title - Interpreter (AppDesigner)

조회 수: 4 (최근 30일)
Jason
Jason 2020년 11월 18일
답변: Benjamin Kraus 2023년 9월 20일
Hello, I don't seem to be able to allow underscores in the title of heatmaps (Im using filenams that have underscores in them)
h1.Title = file;
set(h1,'Interpreter','tex');
I have read post's saying that it was not possible but they were dated 2017...I was wondering if was now possible
Thanks
Jason

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 18일
It still does not support Interpreter. The workaround is to escape the underscore character
h1.Title = strrep(file, '_', '\_')
  댓글 수: 2
Jason
Jason 2020년 11월 18일
Perfect, thankyou
Ameer Hamza
Ameer Hamza 2020년 11월 18일
I am glad to be of help!

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

추가 답변 (1개)

Benjamin Kraus
Benjamin Kraus 2023년 9월 20일
Starting in MATLAB R2023b, the HeatmapChart now has an Interpreter property.
h1 = heatmap(magic(4));
h1.Title = 'file_name';
h1.Interpreter = 'none';

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by