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

Skip to content

Commit 6d95491

Browse files
authored
Merge pull request #25022 from rcomer/constrained-axes-index
DOC: tweak array indexing in constrained layout tutorial
2 parents a4c5ac5 + 65e6c7e commit 6d95491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/intermediate/constrainedlayout_guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def example_plot(ax, fontsize=12, hide_labels=False):
135135
fig, axs = plt.subplots(3, 3, figsize=(4, 4), layout="constrained")
136136
for ax in axs.flat:
137137
im = ax.pcolormesh(arr, **pc_kwargs)
138-
fig.colorbar(im, ax=axs[1:, ][:, 1], shrink=0.8)
138+
fig.colorbar(im, ax=axs[1:, 1], shrink=0.8)
139139
fig.colorbar(im, ax=axs[:, -1], shrink=0.6)
140140

141141
####################################################

0 commit comments

Comments
 (0)