How to add a colormap manually as x-axis under an histogram?
조회 수: 7 (최근 30일)
이전 댓글 표시
Dear all,
I have created an histogram to look at the distribution of pixels per grey in an (8-bit) image. The reason for not using the imhist function is because I create an histogram with a double y-axis, one on the left (a log-axis) and one on the right (normal axis) to represent how wide the distribution is at the low values. (The function I use is attached, in case it is of interest to anyone. It is just an adaptation done quickly from a function by Araja.) The type of histogram I get is this:
I would like to add a colormap under the x-axis, like the one we can see here:
Anybody knows how to do so?
Thank you in advance!
댓글 수: 0
채택된 답변
Steven Lord
2020년 3월 18일
Call colorbar with the 'southoutside' location as shown in the "Add Horizontal Colorbar to Graph" example on the documentation page.
댓글 수: 0
추가 답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!