(frame_number, bar_container)
| 30 | |
| 31 | |
| 32 | def animate(frame_number, bar_container): |
| 33 | # Simulate new data coming in. |
| 34 | data = rng.standard_normal(1000) |
| 35 | n, _ = np.histogram(data, HIST_BINS) |
| 36 | for count, rect in zip(n, bar_container.patches): |
| 37 | rect.set_height(count) |
| 38 | |
| 39 | return bar_container.patches |
| 40 | |
| 41 | # %% |
| 42 | # Using :func:`~matplotlib.pyplot.hist` allows us to get an instance of |
nothing calls this directly
no test coverage detected
searching dependent graphs…