Colorbar Label Interpreter Definition

42 次查看(过去 30 天)
Hello dear Community,
I'd like to implement a formula into the label of my contourf-plot and I can't find an appropriate solution.
cb = contourcbar('Location','eastoutside');
cb.XLabel.String = leg;
This is the way how I achieved the Legend, but I cannot define the Latex Interpreter. I tried the following, but matlab throws an error ('There is no Interperter Property on the ColorBar class.') with this attempt.
set(cb,'interpreter','latex')
Can anyone help me?
Thanks in advance!

采纳的回答

Walter Roberson
Walter Roberson 2017-3-4
cb.Label.Interpreter = 'latex';

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by