MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / animate

Function animate

galleries/examples/animation/animated_histogram.py:32–39  ·  view source on GitHub ↗
(frame_number, bar_container)

Source from the content-addressed store, hash-verified

30
31
32def 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

Callers

nothing calls this directly

Calls 1

set_heightMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…