Histogram chart re-bin on zoom?
1 view (last 30 days)
Show older comments
Currently, I am using hist and bar to plot histogram data. It is by default 10 bins. As an example, say I'm looking at frequency components. I have a lot of data around 300 MHz, some around 500 MHz, and a lot around 1 GHz. In the normal view, I see 3 bars. But if I zoom in on say the 300 MHz bar, I want to be able to see that is actually made up of components of 300, 300.2, 300.5, etc. Is there any way to have only the data in the current view re-drawn as 10 bins?
0 Comments
Accepted Answer
Jan
on 15 Oct 2011
Look in the help text of zoom. There you find the usage of the zoom's ActionPostCallback, which cen be used to determine the new X-limits. You can divide these new limits to 10 bins again and let HITSC find the new values.
0 Comments
More Answers (0)
See Also
Categories
Find more on Data Exploration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!