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

Skip to content

Commit 517b7d1

Browse files
authored
FIX array needs to be flatten
1 parent d14939f commit 517b7d1

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
@@ -173,7 +173,7 @@
173173
ax3.plot(x + 1, -y, 'tab:green')
174174
ax4.plot(x + 2, -y**2, 'tab:red')
175175

176-
for ax in axs:
176+
for ax in axs.flat:
177177
ax.label_outer()
178178

179179
###############################################################################

0 commit comments

Comments
 (0)