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

后端 未结 4 1198
慢半拍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 11:10

    Though I can't tell if it wasn't possible in the past, but nowadays (at least from R2014b) one could just use tex markup:

    plot(0:10,0:10);
    h = gca;
    h.XTickLabel = {'\bf \color{red} 0','2','\bf 4','6','\bf \color{red} 8','10',}
    

提交回复
热议问题