How to change y-axis limit of a histogram
이전 댓글 표시
I want to add a histogram to a GUI, but i have to keep it small, when i initiate it, it shows a value of 5000 on y axis whereas the frequency of pixels is less than 500 so i want to decrease it to clearly show the bars. So can anybody tell me on how to change y axis limit in imhist.
댓글 수: 1
Brando Miranda
2017년 3월 26일
what if its a hist3 i.e. histogram in 2D
답변 (2개)
Image Analyst
2014년 6월 3일
Take the log before you display it. Or suppress one of the bins by setting it to zero. You can change the limits with ylim
ylim([0 500]);
댓글 수: 3
Manish Sharma
2016년 6월 30일
i declared my y axis to be R_size but when i use the above command the matlab pops error as " Undefined function or variable 'R_sizelim'"
José-Luis
2016년 6월 30일
It would be easier to get an answer by asking a new question, instead of commenting on a two-year old post.
Seems like you might want something like:
R_size.YLim = [minim, maxim]
Brando Miranda
2017년 3월 26일
what if its a hist3 i.e. histogram in 2D
jawad mansoor
2014년 5월 25일
0 개 추천
ye le merey dost :P :D :)
ab khapa arrange ker k rakhi
댓글 수: 3
Mohammad Ahmed
2014년 5월 25일
Mohammad Ahmed
2014년 5월 25일
Brando Miranda
2017년 3월 26일
what if its a hist3 i.e. histogram in 2D
카테고리
도움말 센터 및 File Exchange에서 Histograms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!