How to alter contour label properties?
Show older comments
How can I change contour label properties without getting the warning shown below?
[cc, hh] = contourf(peaks);
t = clabel(cc, hh); % This command generates the warning
t.FontWeight = 'bold'; % Does not produce bold font
Warning: Text handle output is not supported for managed labels.
No public field FontWeight exists for class matlab.graphics.GraphicsPlaceholder.
(Can't find any reference to "managed labels" in documentation or clabel code.)
1 Comment
Accepted Answer
More Answers (1)
LUIS ALFONSO DIAZ SECADES
on 25 Feb 2023
Hello there,
I have several contour figures where I would like to change font. General text is easy with Property Inspector but I cannot do the contour.
I have *.fig files and tried to generate the code and insert this inside clabel:
'FontName','Times New Roman'
but it did not work.
Any tip on how to exchange contour font in an already generated figure?
Thanks in advance.
Kind regards
Categories
Find more on Contour Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!