Clear Filters
Clear Filters

Colorbar Label Interpreter Definition

42 views (last 30 days)
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!

Accepted Answer

Walter Roberson
Walter Roberson on 4 Mar 2017
cb.Label.Interpreter = 'latex';

More Answers (0)

Community Treasure Hunt

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

Start Hunting!