Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d95491

Browse filesBrowse 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
Copy full SHA for 6d95491

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎tutorials/intermediate/constrainedlayout_guide.py

Copy file name to clipboardExpand all lines: tutorials/intermediate/constrainedlayout_guide.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.