e30d055aca6da86ef147f6772b7b53a82b645b9e,tutorials/intermediate/constrainedlayout_guide.py,,,#,81
Before Change
fig, axs = plt.subplots(2, 2, constrained_layout=True)
for ax in axs.flatten()[:-1]:
ax.plot(np.arange(10))
axs[1, 1].plot(np.arange(10), label="This is a plot")
leg = axs[1, 1].legend(loc="center left", bbox_to_anchor=(0.8, 0.5))
leg.set_in_layout(False)
wanttoprint = False
After Change
labels = [l.get_label() for l in lines]
leg = fig.legend(lines, labels, loc="center left",
bbox_to_anchor=(0.8, 0.5), bbox_transform=axs[1].transAxes)
fig.savefig("CL02.png", bbox_inches="tight", dpi=100)
//////////////////////////////////////////////////////////////////////////////////////////
// The saved file looks like:
//
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: matplotlib/matplotlib
Commit Name: e30d055aca6da86ef147f6772b7b53a82b645b9e
Time: 2018-10-05
Author: 23121882+ImportanceOfBeingErnest@users.noreply.github.com
File Name: tutorials/intermediate/constrainedlayout_guide.py
Class Name:
Method Name:
Project Name: nipy/dipy
Commit Name: 4edb32906c1cadcd1f8cc8e76181bd83db408e93
Time: 2019-07-21
Author: girard.gabriel@gmail.com
File Name: doc/examples/tracking_introduction_eudx.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: f2e2aa02df60786f53f080cf58bf11698b67fc6c
Time: 2017-05-30
Author: dstansby@gmail.com
File Name: examples/text_labels_and_annotations/tex_demo.py
Class Name:
Method Name:
Project Name: rtavenar/tslearn
Commit Name: e1f92a14847ae62d3ec009653a577a01b19a1626
Time: 2020-06-07
Author: givdwiel.vandewiele@ugent.be
File Name: tslearn/docs/examples/classification/plot_shapelet_distances.py
Class Name:
Method Name: