5ba39117e27d4342d32993cb3e1f13adf821c06e,examples/animation/animated_histogram.py,,,#,81

Before Change


ax.add_patch(patch)

ax.set_xlim(left[0], right[-1])
ax.set_ylim(bottom.min(), top.max())

ani = animation.FuncAnimation(fig, animate, 50, repeat=False, blit=True)
plt.show()

After Change


// `.BarContainer`, all this is used to setup `.FuncAnimation`.

fig, ax = plt.subplots()
_, _, bar_container = ax.hist(data, HIST_BINS, lw=1,
                              ec="yellow", fc="green", alpha=0.5)
ax.set_ylim(top=55)  // set safe limit to ensure that all data is visible.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: matplotlib/matplotlib
Commit Name: 5ba39117e27d4342d32993cb3e1f13adf821c06e
Time: 2020-10-30
Author: 48711526+deep-jkl@users.noreply.github.com
File Name: examples/animation/animated_histogram.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 60e9ec01c86b3060f6bffd4802502d31029d9b9b
Time: 2018-05-16
Author: elch.rz@ruetz-online.de
File Name: examples/axes_grid1/inset_locator_demo2.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 55bab51c4b43d50ea6fc52cb752877a6df618ce2
Time: 2018-08-04
Author: jklymak@gmail.com
File Name: examples/axes_grid1/inset_locator_demo2.py
Class Name:
Method Name: