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

Skip to content

Commit e587e5e

Browse files
committed
DOC: fix Subplot calls
1 parent 819c483 commit e587e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/subplots_axes_and_figures/gridspec_nested.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def format_axes(fig):
2828
ax2 = f.add_subplot(gs00[-1, :-1])
2929
ax3 = f.add_subplot(gs00[-1, -1])
3030

31-
32-
gs01 = gridspec.GridSpecFromSubplotSpec(3, 3, subplot_spec=gs0[1])
31+
# the following syntax is the same as the GridSpecFromSubplotSpec call above:
32+
gs01 = gs0[1].subgridspec(3, 3)
3333

3434
ax4 = f.add_subplot(gs01[:, :-1])
3535
ax5 = f.add_subplot(gs01[:-1, -1])

0 commit comments

Comments
 (0)