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
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")
fig.suptitle("This is a somewhat long figure title", fontsize=16)
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: nipy/dipy
Commit Name: 26359ea24696a73166f780643fb0f3a3d422a9c6
Time: 2019-04-14
Author: arokem@gmail.com
File Name: doc/examples/reconst_ivim.py
Class Name:
Method Name:
Project Name: ScottfreeLLC/AlphaPy
Commit Name: 7a7d0e7b35cbee6b3409ac30ff4bf4edfe525af2
Time: 2019-11-17
Author: Mark.R.Conway@gmail.com
File Name: alphapy/plots.py
Class Name:
Method Name: plot_confusion_matrix