plot - MATLAB: Assign multiple colors to text in legend -
I'm trying to paint code text in a legend. (Since I can sort several plots in different categories I am trying, I can not trust line colors only in legend.) I have been able to set the text color for the whole story, but I can not manage it, assign it a line by line Is it possible?
Code so far:
list = {'label 1', 'label2', 'label3'}; Foot = story (list); Set (Leg, 'Textclorse', [1])
In the form of red color sets the text color for the whole legend. I am some red, and some black Want to be able to create I tried to designate the color array as a nx3 matrix, but MATLAB did not like it much I had poked around the legend properties using the get (leg)
, but something And could not find what seemed to be useful. Any suggestions?
Here is the code:
legtxt = findobj (foot, Type ',' text ');
Just by what ways does the index indicate.
Comments
Post a Comment