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

Skip to content

Commit 1e66c82

Browse files
authored
Merge pull request #16273 from greglucas/fix_spelling_coordinate
DOC: Changing the spelling of co-ordinates.
2 parents cc55b47 + 9411a16 commit 1e66c82

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

examples/subplots_axes_and_figures/secondary_axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def inverse(x):
8181
ax.plot(xdata, ydata, label='Plotted data')
8282

8383
xold = np.arange(0, 11, 0.2)
84-
# fake data set relating x co-ordinate to another data-derived co-ordinate.
84+
# fake data set relating x coordinate to another data-derived coordinate.
8585
# xnew must be monotonic, so we sort...
8686
xnew = np.sort(10 * np.exp(-xold / 4) + np.random.randn(len(xold)) / 3)
8787

lib/matplotlib/_constrained_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def _make_layout_margins(ax, renderer, h_pad, w_pad):
274274

275275
# this can go wrong:
276276
if not (np.isfinite(bbox.width) and np.isfinite(bbox.height)):
277-
# just abort, this is likely a bad set of co-ordinates that
277+
# just abort, this is likely a bad set of coordinates that
278278
# is transitory...
279279
return
280280
# use stored h_pad if it exists

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def get_tightbbox(self, renderer):
272272
Returns
273273
-------
274274
bbox : `.Bbox`
275-
The enclosing bounding box (in figure pixel co-ordinates).
275+
The enclosing bounding box (in figure pixel coordinates).
276276
"""
277277
bbox = self.get_window_extent(renderer)
278278
if self.get_clip_on():

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
500500
chosen so as to not overlap with the indicator box.
501501
502502
transform : `.Transform`
503-
Transform for the rectangle co-ordinates. Defaults to
503+
Transform for the rectangle coordinates. Defaults to
504504
`ax.transAxes`, i.e. the units of *rect* are in axes-relative
505505
coordinates.
506506

lib/matplotlib/axes/_secondary_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def set_alignment(self, align):
117117
def set_location(self, location):
118118
"""
119119
Set the vertical or horizontal location of the axes in
120-
parent-normalized co-ordinates.
120+
parent-normalized coordinates.
121121
122122
Parameters
123123
----------
@@ -152,7 +152,7 @@ def set_location(self, location):
152152

153153
# this locator lets the axes move in the parent axes coordinates.
154154
# so it never needs to know where the parent is explicitly in
155-
# figure co-ordinates.
155+
# figure coordinates.
156156
# it gets called in `ax.apply_aspect() (of all places)
157157
self.set_axes_locator(secondary_locator)
158158

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def get_datalim(self, transData):
200200
transOffset = self.get_offset_transform()
201201
if (not self._offsetsNone and
202202
not transOffset.contains_branch(transData)):
203-
# if there are offsets but in some co-ords other than data,
203+
# if there are offsets but in some coords other than data,
204204
# then don't use them for autoscaling.
205205
return transforms.Bbox.null()
206206
offsets = self._offsets

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ def get_tightbbox(self, renderer):
953953
954954
Returns
955955
-------
956-
`.BboxBase` : containing the bounding box in figure pixel co-ordinates.
956+
`.BboxBase` : containing the bounding box in figure pixel coordinates.
957957
"""
958958
return self._legend_box.get_window_extent(renderer)
959959

lib/matplotlib/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def draw(self, renderer):
422422

423423
def _get_grid_bbox(self, renderer):
424424
"""
425-
Get a bbox, in axes co-ordinates for the cells.
425+
Get a bbox, in axes coordinates for the cells.
426426
427427
Only include those in the range (0, 0) to (maxRow, maxCol).
428428
"""

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6310,7 +6310,7 @@ def test_zoom_inset():
63106310
ax.apply_aspect()
63116311
# we need to apply_aspect to make the drawing below work.
63126312

6313-
# Make the inset_axes... Position axes co-ordinates...
6313+
# Make the inset_axes... Position axes coordinates...
63146314
axin1 = ax.inset_axes([0.7, 0.7, 0.35, 0.35])
63156315
# redraw the data in the inset axes...
63166316
axin1.pcolormesh(x, y, z)

0 commit comments

Comments
 (0)