How to write the values at an axes in a usual plot in Matlab R2014a in Latex style?

4 ビュー (過去 30 日間)
Lukas Bathelt
Lukas Bathelt 2017 年 3 月 30 日
回答済み: dpb 2017 年 3 月 30 日
I want all objects in my plot in Latex style. The legend and the x and ylabels are already in latex style. But the values (red in the picture) are still in another font.
I start the code with
set(0,'DefaultTextInterpreter','latex')
set(groot,'DefaultLegendInterpreter','latex')
But that seems not enough. When I try
set(gca,'TickLabelInterpreter','latex','FontSize',fontsize);
I get an error:
>>Error using set
Invalid property found.
Object Name: axes
Property Name: 'TickLabelInterpreter'<<.
Anyone there who can help me with this?

回答 (1 件)

dpb
dpb 2017 年 3 月 30 日
Works with R2014b; I suspect that was the release in which the additional property was introduced; I wasn't aware of it until this posting.

カテゴリ

Help Center および File ExchangeLabels and Annotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by