Matlab title with different colors on the string
이전 댓글 표시
How do I specify different font colors on the same string using the TEXT, TITLE, XLABEL, YLABEL, or ZLABEL commands in Matlab 8.2(R2013b)?
A previous solution for ver 2009a suggested using this as an example:
title(['\fontsize{16}black {\color{magenta}magenta '...
'\color[rgb]{0 .5 .5}teal \color{red}red} black again'])
...which does not work anymore. Any help will be appreciated.
채택된 답변
추가 답변 (1개)
Simona Cianci
2018년 2월 8일
편집: Walter Roberson
2018년 2월 8일
The solution with the interpreter does not work with suptitle, any solutions? .
suptitle([sprintf('FREQUENZE STRATEGIE\n'),'{ \color{blue} Caviglia',' \color{red}Anca',' \color[rgb]{0 .6 0}Passo',' \color[rgb]{.25 .25 .25} EC', '\color{w} EO}'],'interpreter','tex');
Tnks
댓글 수: 1
Walter Roberson
2018년 2월 8일
suptitle is a helper function for yeastdemo of the Bioinformatics toolbox. Is that what you are using, or are you using something from the File Exchange?
카테고리
도움말 센터 및 File Exchange에서 Title에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!