Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819c483 commit 899cdf6Copy full SHA for 899cdf6
examples/subplots_axes_and_figures/gridspec_nested.py
@@ -28,8 +28,9 @@ def format_axes(fig):
28
ax2 = f.add_subplot(gs00[-1, :-1])
29
ax3 = f.add_subplot(gs00[-1, -1])
30
31
+# the following syntax is the same as the GridSpecFromSubplotSpec call above:
32
-gs01 = gridspec.GridSpecFromSubplotSpec(3, 3, subplot_spec=gs0[1])
33
+gs01 = gs0[1].subgridspec(3, 3)
34
35
ax4 = f.add_subplot(gs01[:, :-1])
36
ax5 = f.add_subplot(gs01[:-1, -1])
0 commit comments