Skip to content

Commit e755f60

Browse files
committed
fix typos in gridspec docs
svn path=/trunk/matplotlib/; revision=8485
1 parent d0d2110 commit e755f60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/users/gridspec.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ GridSpec using SubplotSpec
118118
==========================
119119

120120
You can create GridSpec from the SubplotSpec, in which case its layout
121-
parameters are set to that of the locataion of the given SubplotSpec. ::
121+
parameters are set to that of the location of the given SubplotSpec. ::
122122

123123
gs0 = gridspec.GridSpec(1, 2)
124124

@@ -134,13 +134,13 @@ GridSpec with Varying Cell Sizes
134134

135135
By default, GridSpec creates cells of equal sizes. You can adjust
136136
relative heights and widths of rows and columns. Note that absolute
137-
values are meaningless, onlt their relative ratios matter. ::
137+
values are meaningless, only their relative ratios matter. ::
138138

139139
gs = gridspec.GridSpec(2, 2,
140140
width_ratios=[1,2],
141141
height_ratios=[4,1]
142142
)
143-
143+
144144
ax1 = plt.subplot(gs[0])
145145
ax2 = plt.subplot(gs[1])
146146
ax3 = plt.subplot(gs[2])

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8254,7 +8254,7 @@ def triplot(self, *args, **kwargs):
82548254
triplot.__doc__ = mtri.triplot.__doc__
82558255

82568256

8257-
from gridspec import GridSpec, SubplotSpec
8257+
from matplotlib.gridspec import GridSpec, SubplotSpec
82588258

82598259
class SubplotBase:
82608260
"""

0 commit comments

Comments
 (0)