24d6f5e42d775949e191122091826eefa7bf1246,docs/examples/plot_viterbi.py,,,#,27

Before Change


plt.figure(figsize=(12, 4))
plt.plot(times, rms)
plt.axhline(0.02, color="r", alpha=0.5)
plt.xlabel("Time")
plt.ylabel("RMS")
plt.axis("tight")
plt.tight_layout()

After Change



times = librosa.frames_to_time(np.arange(len(rms)))

fig, ax = plt.subplots()
ax.plot(times, rms)
ax.axhline(0.02, color="r", alpha=0.5)
ax.set(xlabel="Time", ylabel="RMS");

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The red line at 0.02 indicates a reasonable threshold for silence detection.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: 24d6f5e42d775949e191122091826eefa7bf1246
Time: 2020-06-27
Author: bmcfee@users.noreply.github.com
File Name: docs/examples/plot_viterbi.py
Class Name:
Method Name:


Project Name: librosa/librosa
Commit Name: 24d6f5e42d775949e191122091826eefa7bf1246
Time: 2020-06-27
Author: bmcfee@users.noreply.github.com
File Name: docs/examples/plot_viterbi.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: b2a2dccef7052753b8e2c1d99cf0183a03494c17
Time: 2017-07-16
Author: dmgt@users.noreply.github.com
File Name: examples/pylab_examples/simple_plot.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 39ca4abed87007e1ce7e2ecae9bfb31c8f4ba57b
Time: 2017-07-16
Author: dmgt@users.noreply.github.com
File Name: examples/subplots_axes_and_figures/subplot_demo.py
Class Name:
Method Name: