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

Skip to content

Commit f0fe167

Browse files
committed
Fix a typo in GridSpec Guide.
1 parent 7eff65a commit f0fe167

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tutorials/intermediate/gridspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@
137137

138138
gs_kw = dict(width_ratios=widths, height_ratios=heights)
139139
fig6, f6_axes = plt.subplots(ncols=3, nrows=3, constrained_layout=True,
140-
gridspec_kw=gs_kw)
140+
gridspec_kw=gs_kw)
141141
for r, row in enumerate(f6_axes):
142142
for c, ax in enumerate(row):
143143
label = 'Width: {}\nHeight: {}'.format(widths[c], heights[r])
144144
ax.annotate(label, (0.1, 0.5), xycoords='axes fraction', va='center')
145145

146146
############################################################################
147-
# The ``subplots`` and ``gridspec`` methods can be combined since it is
147+
# The ``subplots`` and ``get_gridspec`` methods can be combined since it is
148148
# sometimes more convenient to make most of the subplots using ``subplots``
149149
# and then remove some and combine them. Here we create a layout with
150150
# the bottom two axes in the last column combined.

0 commit comments

Comments
 (0)