Unrecognized property 'Title' in heatmap function

3 Ansichten (letzte 30 Tage)
Martin Wukovnig
Martin Wukovnig am 22 Jul. 2021
Kommentiert: Martin Wukovnig am 22 Jul. 2021
I'm trying to run the following code in an empty workspace, which is a 1:1 copy from the Matlab documentation for the heatmap function:
h = heatmap([1 3 5; 2 4 6]);
h.Title = 'My Heatmap Title';
When running the code I get the error:
Unrecognized property 'Title' for class 'matlab.graphics.primitive.Image'.
Why and how can I circumvent this? I have quite a large number of large scripts using the inbuilt heatmap function to create specific heatmaps and to plot them via some other scripts. It used to work just some months ago and now it doesn't because of this error, and I can't explain it (and I also don't want to change all my old scripts if it can be easily circumvented).
I'd be really thankful for any input!

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 22 Jul. 2021
which -all heatmap
I suspect that you are using a third party heatmap function
  1 Kommentar
Martin Wukovnig
Martin Wukovnig am 22 Jul. 2021
Thank you, you are right! I had a custom function 'heatmap' in my path without remembering so. Thanks a lot!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by