Predefining colors for in-text coloring
    12 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hi all
I am using the latex approach to coloring segments of e.g. a title. For example:
figure
plot(rand(10,1),'.')
title('{\color{red}this is red} and {\color{blue}this is blue}')
However, it appears that only 8 predefined colors are available automatically in Matlab. How do I expand this number, or ideally predefine color names using rgb codes myself?
Cheers
Jakob
0 件のコメント
採用された回答
  Jakob Sievers
      
 2014 年 6 月 25 日
        2 件のコメント
  Image Analyst
      
      
 2014 年 6 月 25 日
				For completeness:
title('{\color[rgb]{1 .5 .2}This text is orange} and {\color[rgb]{0,1,1}This text is cyan}',...
  'FontSize', 25, 'FontWeight', 'Bold')
その他の回答 (1 件)
  Image Analyst
      
      
 2014 年 6 月 25 日
        Why don't you just try the 'Color' option and put in RGB colors inthe range 0-1
title('This is the title', 'Color', [0.1, 0.3, 0.5]);
参考
カテゴリ
				Help Center および File Exchange で Labels and Annotations についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

