mardi 4 novembre 2014

How can I take a string and change the colour for each new line in TEXT?


Vote count:

0




To be more specific I have, for position x,z and Y(1:size(y1,2)) is a list of strings (I think):


text(x, z, Y(1:size(y1,2)));.


I wish to colour in the different lines of Y(1:size(y1,2))), which varies in size, in different colours. As this varies in size I cannot use the following method (as far as I am aware):


text(x, z, {\color{magenta}Y(1),.. , \colour{red}Y(size(y1,2))}) %or similar


Many Thanks!



asked 27 secs ago

josh

69






How can I take a string and change the colour for each new line in TEXT?

Aucun commentaire:

Enregistrer un commentaire