How can I set bar XTick labels with tex Interpreter in linux matlab?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
assionvi hove kouevi
el 9 de Feb. de 2016
Editada: assionvi hove kouevi
el 9 de Feb. de 2016
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?
0 comentarios
Respuestas (1)
Star Strider
el 9 de Feb. de 2016
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 comentarios
Walter Roberson
el 9 de Feb. de 2016
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.
Ver también
Categorías
Más información sobre Graphics Object Properties en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!