Effacer les filtres
Effacer les filtres

Colorbar Label Interpreter Definition

42 vues (au cours des 30 derniers jours)
Georg Söllinger
Georg Söllinger le 4 Mar 2017
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!

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Mar 2017
cb.Label.Interpreter = 'latex';
  1 commentaire
Georg Söllinger
Georg Söllinger le 4 Mar 2017
Thanks, your solution works!!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by