Invert a histogram by emphasizing on the valleys
古いコメントを表示
Hello! I have a regular histogram, where I have my peaks at a certain frequencies. However, i want to emphasize on the valleys in my histogram rather than on the peaks. How do I make it so? I want my new histogram to display the peaks as the spaces with the biggest valleys in the initial plot. Like invert it, in a sense?
7 件のコメント
Yazan
2021 年 8 月 20 日
Can you provide a picture or data? just to visulize what you're looking for.
kathsb
2021 年 8 月 20 日
Bjorn Gustavsson
2021 年 8 月 20 日
Would it be enough to zoom in the vertical direction such that the all histogram-ampltudes above some level disappears from the view and only the variations around your valeys remain - Turning things upside-down might be confusing to the "instant interpretation" of your plot. Perhaps attach an image with your histogram?
Bjorn Gustavsson
2021 年 8 月 20 日
Perhaps something as simple as:
set(gca,'YDir','reverse')
kathsb
2021 年 8 月 20 日
Image Analyst
2021 年 8 月 20 日
@kathsb, what picture? I'm not seeing any picture that you uploaded or butchered. Did you remove it?
And do you just want to somehow invert the bar chart, or do you actually want to change the original data from which it came?
And why? What is the use case? It seems like the result could be misleading. Why would you want to do that?
You already accepted an answer below, so we assume you've already solved the problem so not sure why you're continuing to post.
kathsb
2021 年 8 月 20 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

