필터 지우기
필터 지우기

How to remove a gap between bars in histogram?

조회 수: 14 (최근 30일)
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2016년 10월 9일
답변: Image Analyst 2016년 10월 9일
Hello all, I would like to remove gaps between bars in a histograms, I attached you my figures for your record. Due to the fact that I had a big vector, I just write its dimension;
K=467*1 double;
h1=histogram(k,'Normalization','probability','FaceColor','k');
Do you know how to remove the gap?

답변 (1개)

Image Analyst
Image Analyst 2016년 10월 9일
There are no gaps between the bins. You can set the EdgeColor to be 'none' if you want. There are missing bins because you have gaps in your data - i.e. you have no data with values between 1.2 and 1.3 so because the height of that bin is zero, it might appear to be a gap, but it's not a gap in the display - it's a gap in your data. You can't get rid of it unless you change your bin width or change your data.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by