How can I set bar XTick labels with tex Interpreter in linux matlab?

조회 수: 1 (최근 30일)
assionvi  hove kouevi
assionvi hove kouevi 2016년 2월 9일
편집: assionvi hove kouevi 2016년 2월 9일
In MATLAB windows I used
set(gca,'XTickLabel',{'G', 'K_0','D_{FC^+}', 'K_r','D_{HS^-}','K_d','D_{H_2S}','C^0_{H_2S}'}, 'FontSize', 25, 'LineWidth',2.5)
to set the bar XTick labels with tex Interpreter and it work.
But when I run the code in Linux, it doesn't work(see the figure ). How can I fix it?

답변 (1개)

Star Strider
Star Strider 2016년 2월 9일
I don’t run Linux, but one possibility is that you have to specify the interpreter. See if specifying it works:
set(gca,'XTickLabel',{'G', 'K_0','D_{FC^+}', 'K_r','D_{HS^-}','K_d','D_{H_2S}','C^0_{H_2S}'}, 'FontSize', 25, 'LineWidth',2.5, 'Interpreter','tex')
  댓글 수: 3
Walter Roberson
Walter Roberson 2016년 2월 9일
R2014b and later has an XTickInterpreter property. Earlier versions had no equivalent so you had to text() items into place if you needed special strings.
assionvi  hove kouevi
assionvi hove kouevi 2016년 2월 9일
편집: assionvi hove kouevi 2016년 2월 9일
Thanks to you all,
you are right Walter Roberson, the problem is the version of my MATLAB(R2014a).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by