Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90ce3ab

Browse files
oscargusmeeseeksmachine
authored andcommitted
Backport PR #24171: Fix example where wrong variable was used
1 parent 3bf2bdd commit 90ce3ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/subplots_axes_and_figures/subplots_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
ax3.plot(x + 1, -y, 'tab:green')
177177
ax4.plot(x + 2, -y**2, 'tab:red')
178178

179-
for ax in axs.flat:
179+
for ax in fig.get_axes():
180180
ax.label_outer()
181181

182182
###############################################################################

0 commit comments

Comments
 (0)