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

Skip to content

Commit 244a407

Browse files
committed
Minor fix in multiple subplots example
1 parent 0ac953d commit 244a407

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/subplots_axes_and_figures/subplots_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
ax3.plot(x, -y, 'tab:green')
105105
ax4.plot(x, -y**2, 'tab:red')
106106

107-
for ax in axs.flat:
107+
for ax in fig.get_axes():
108108
ax.label_outer()
109109

110110
###############################################################################

0 commit comments

Comments
 (0)