labels of a box plot in latex format
    조회 수: 10 (최근 30일)
  
       이전 댓글 표시
    
Dear
I am making a boxplot:
Labels={'D5%', 'D10%','D15%','D20%','D25%','D30%','D35%','D40%', ...
        'D45%','D50%','D55%','D60%','D65%','D70%','D75%','D80%', ...
        'D85%','D90%','D95%','D100%'};
boxplot(RelDiff,'Labels',Labels);
But I would like to go one step furhter, and I want to plot each label with a subscript, i.e. replace 'D5%' by 'D_{5%}' in latex format
Is there any way to do it?
Thanks in advanced!!
댓글 수: 0
채택된 답변
  Walter Roberson
      
      
 2020년 8월 21일
        The documentation says,
"To remove labels from a plot , use the following command: set(gca,'XTickLabel',{' '})."
This tells us that what you pass is being used as XTickLabels. In turn that tells us that you can set the axes TickLabelInterpreter property to tex or latex
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

