Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different color for different parts of MATLAB title

I have, what I think might be a 'simple' problem. I know how to change the color of a MATLAB title. What I do not know, is how to use two different colors, at two different parts of the title.

For example, lets say the title of a figure said "Hello World". Then, I want the "Hello" to be in black, while the "World" to be in blue.

How to do this? Thank you.

like image 344
Spacey Avatar asked May 09 '13 18:05

Spacey


1 Answers

You can use TeX markup to do that. Here's an example:

title(['Hello {\color{blue}World}']);
like image 63
Phonon Avatar answered Sep 17 '22 23:09

Phonon