Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Backport PR #30029 on branch v3.10.x (Update diagram in subplots_adjust documentation to clarify parameters)#30033
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
…o clarify parameters
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
import matplotlib.pyplot as plt | ||
fig, axs = plt.subplots(2, 2, figsize=(6.5, 4)) | ||
fig.set_facecolor('lightblue') | ||
fig.subplots_adjust(0.1, 0.1, 0.9, 0.9, 0.4, 0.4) | ||
overlay = fig.add_axes([0, 0, 1, 1], zorder=100) | ||
overlay.axis("off") | ||
xycoords='figure fraction' | ||
Check failure on line 10 in doc/_embedded_plots/figure_subplots_adjust.py
| ||
arrowprops=dict(arrowstyle="<->", shrinkA=0, shrinkB=0) | ||
Check failure on line 11 in doc/_embedded_plots/figure_subplots_adjust.py
| ||
timhoffm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
for ax in axs.flat: | ||
ax.set(xticks=[], yticks=[]) | ||
overlay.annotate("", (0, 0.75), (0.1, 0.75), | ||
xycoords=xycoords, arrowprops=arrowprops) # left | ||
overlay.annotate("", (0.435, 0.25), (0.565, 0.25), | ||
xycoords=xycoords, arrowprops=arrowprops) # wspace | ||
overlay.annotate("", (0, 0.8), (0.9, 0.8), | ||
xycoords=xycoords, arrowprops=arrowprops) # right | ||
fig.text(0.05, 0.7, "left", ha="center") | ||
fig.text(0.5, 0.3, "wspace", ha="center") | ||
fig.text(0.05, 0.83, "right", ha="center") | ||
overlay.annotate("", (0.75, 0), (0.75, 0.1), | ||
xycoords=xycoords, arrowprops=arrowprops) # bottom | ||
overlay.annotate("", (0.25, 0.435), (0.25, 0.565), | ||
xycoords=xycoords, arrowprops=arrowprops) # hspace | ||
overlay.annotate("", (0.8, 0), (0.8, 0.9), | ||
xycoords=xycoords, arrowprops=arrowprops) # top | ||
fig.text(0.65, 0.05, "bottom", va="center") | ||
fig.text(0.28, 0.5, "hspace", va="center") | ||
fig.text(0.82, 0.05, "top", va="center") |
Uh oh!
There was an error while loading.Please reload this page.