Display Only Every Other Y Axis Label on Heatmap

조회 수: 4 (최근 30일)
Domenic Narducci
Domenic Narducci 2017년 6월 14일
답변: Azar Aliyev 2020년 12월 16일
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

답변 (2개)

Stephen Jue
Stephen Jue 2017년 6월 21일
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
Catherine Munro
Catherine Munro 2020년 2월 25일
Hi,
Is there any update on the technical development for this one?
Thank you,
Cat
Azar Aliyev
Azar Aliyev 2020년 12월 16일
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
Azar Aliyev 2020년 12월 16일
Try using YDisplayLabels and manually pass it a string with every other label removed (i.e. "" for every other label).

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by