Display Only Every Other Y Axis Label on Heatmap
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have a heatmap with a lot of values on the y axis and I would like to display it so that only every few labels on the y-axis show. Is there anyway to do this?
Thanks
0 Kommentare
Antworten (2)
Stephen Jue
am 21 Jun. 2017
There is currently no property of the "heatmap" object that allows users to directly change the labels. I work for MathWorks Technical Support and let the appropriate development team know about this limitation so that they will consider allowing more control of labels for future releases of MATLAB.
In the meantime, I suggest you do some preprocessing of the underlying data that you are plotting in the heatmap. For example, you can plot half as much data by skipping every other data point in the underlying table or arrays.
2 Kommentare
Catherine Munro
am 25 Feb. 2020
Hi,
Is there any update on the technical development for this one?
Thank you,
Cat
Azar Aliyev
am 16 Dez. 2020
I have faced a similar issue. My solution is to use YDisplayLabels and manually pass it a string with every other label removed (i.e. "" for every other label).
Azar Aliyev
am 16 Dez. 2020
Try using YDisplayLabels and manually pass it a string with every other label removed (i.e. "" for every other label).
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!