Unrecognized property 'Title' in heatmap function

4 vues (au cours des 30 derniers jours)
Martin Wukovnig
Martin Wukovnig le 22 Juil 2021
Commenté : Martin Wukovnig le 22 Juil 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!

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by