Putting certain tick labels in boldface (but not all of them)?

后端 未结 4 1203
慢半拍i
慢半拍i 2020-12-19 10:45

In MATLAB I have a graph with some tick labels. I\'d like to visually emphasize a few of these labels, but not all of them. Is there a way to only put SOME tick labels in b

4条回答
  •  渐次进展
    2020-12-19 10:57

    %% creat a new control vector, like here I want to make some special labels
    as bold red. 
    
    control_vector = cell(length(the_origional_Xlabels), 1);
    control_vector(index) = {'\bf \color{red} '}; 
    
    %% the put string cat the control vector and the original xlables
    new_labels = control_vector, protease_universal_sorted));
    xticks(1:length(the_the_origional_Xlabels));
    xticklabels(new_labels)
    

提交回复
热议问题