618588dcf98a32cc2c8e3d9e766b416ca8f3c9ac,examples/subplots_axes_and_figures/figure_title.py,,,#,18
Before Change
plt.subplot(122)
plt.plot(t3, np.cos(2*np.pi*t3), "--")
plt.xlabel("time (s)")
plt.title("subplot 2")
plt.ylabel("Undamped")
plt.subplots_adjust(left=0.2, wspace=0.8, top=0.8)
After Change
t3 = np.arange(0.0, 2.0, 0.01)
fig, axs = plt.subplots(2, 1, constrained_layout=True)
axs[0].plot(t1, f(t1), "o", t2, f(t2), "-")
axs[0].set_title("subplot 1")
axs[0].set_xlabel("distance (m)")
axs[0].set_ylabel("Damped oscillation")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: matplotlib/matplotlib
Commit Name: 618588dcf98a32cc2c8e3d9e766b416ca8f3c9ac
Time: 2018-07-06
Author: jklymak@gmail.com
File Name: examples/subplots_axes_and_figures/figure_title.py
Class Name:
Method Name:
Project Name: kundajelab/dragonn
Commit Name: 38512d92a8682a62e73c5b9e86366888be374532
Time: 2019-05-29
Author: annashcherbina@gmail.com
File Name: dragonn/vis/__init__.py
Class Name:
Method Name: plot_motif_scores
Project Name: scikit-image/scikit-image
Commit Name: 21339f4cbbe3988edfe24b28a91af2278b7a3382
Time: 2016-09-05
Author: multicolor.mood@gmail.com
File Name: doc/source/plots/hough_tf.py
Class Name:
Method Name: