Azzera filtri
Azzera filtri

Histogram chart re-bin on zoom?

1 visualizzazione (ultimi 30 giorni)
Jared
Jared il 15 Ott 2011
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?

Risposta accettata

Jan
Jan il 15 Ott 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.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by