フィルターのクリア

How to change y-axis limit of a histogram

57 ビュー (過去 30 日間)
Mohammad  Ahmed
Mohammad Ahmed 2014 年 5 月 25 日
コメント済み: Brando Miranda 2017 年 3 月 26 日
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
Brando Miranda 2017 年 3 月 26 日
what if its a hist3 i.e. histogram in 2D

サインインしてコメントする。

回答 (2 件)

Image Analyst
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 件のコメント
José-Luis
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
Brando Miranda 2017 年 3 月 26 日
what if its a hist3 i.e. histogram in 2D

サインインしてコメントする。


jawad mansoor
jawad mansoor 2014 年 5 月 25 日
ye le merey dost :P :D :)
ab khapa arrange ker k rakhi
  3 件のコメント
Mohammad  Ahmed
Mohammad Ahmed 2014 年 5 月 25 日
I tried, but in GUI mode, it is not working, any other suggestions
Brando Miranda
Brando Miranda 2017 年 3 月 26 日
what if its a hist3 i.e. histogram in 2D

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by