How do I change the default text interpreter for a plot axis label in R2015a?

206 次查看(过去 30 天)
In previous versions on Matlab, I could set the default text interpreter to 'none' to avoid undesired subscripts in my plots by using this line in my startup file
set(0, 'DefaultTextInterpreter', 'none')
In 2015a this does not effect axis labels or legends. I can now effect legends with a separate command in my startup file using
set(0, 'DefaultLegendInterpreter', 'none')
And I can effect axis labels locally in a plotting script
set(gca, 'TickLabelInterpreter', 'none')
But how do I effect axis labels on a global level?

采纳的回答

Walter Roberson
Walter Roberson 2015-11-16
Try
set(groot, 'DefaultAxesTickLabelInterpreter', 'none')

更多回答(1 个)

Tom Grana
Tom Grana 2018-5-16
编辑:Tom Grana 2018-5-16
Looking back at this 2.5 years later, this is what I use in my startup.m:
set(0, 'DefaultTextInterpreter', 'none')
set(0, 'DefaultLegendInterpreter', 'none')
set(0, 'DefaultAxesTickLabelInterpreter', 'none')

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by