8000 Fixed typos. · matplotlib/matplotlib@79b80af · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79b80af

Browse files
author
Phil Elson
committed
Fixed typos.
1 parent 3914e5d commit 79b80af

File tree

4 files changed

+21
-22
lines changed

4 files changed

+21
-22
lines changed

lib/matplotlib/gridspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, nrows, ncols,
3333
height_ratios=None, width_ratios=None):
3434
"""
3535
The number of rows and number of columns of the grid need to
36-
be set. Optionally, the ratio of heights and widths of ros and
36+
be set. Optionally, the ratio of heights and widths of rows and
3737
columns can be specified.
3838
"""
3939
#self.figure = figure
@@ -357,7 +357,7 @@ def __init__(self, nrows, ncols,
357357
"""
358358
The number of rows and number of columns of the grid need to
359359
be set. An instance of SubplotSpec is also needed to be set
360-
from which the layout parameters will be inheirted. The wspace
360+
from which the layout parameters will be inherited. The wspace
361361
and hspace of the layout can be optionally specified or the
362362
default values (from the figure or rcParams) will be used.
363363
"""

lib/matplotlib/legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def get_legend_handler(legend_handler_map, orig_handle):
535535
536536
It first checks if the *orig_handle* itself is a key in the
537537
*legend_hanler_map* and return the associated value.
538-
Otherwised, it checks for each of the classes in its
538+
Otherwise, it checks for each of the classes in its
539539
method-resolution-order. If no matching key is found, it
540540
returns None.
541541
"""
@@ -556,7 +556,7 @@ def get_legend_handler(legend_handler_map, orig_handle):
556556

557557
def _init_legend_box(self, handles, labels):
558558
"""
559-
Initiallize the legend_box. The legend_box is an instance of
559+
Initialize the legend_box. The legend_box is an instance of
560560
the OffsetBox, which is packed with legend handles and
561561
texts. Once packed, their location is calculated during the
562562
drawing time.

lib/matplotlib/markers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,9 @@ def _set_path_marker(self):
198198
self._set_custom_marker(self._marker)
199199

200200
def _set_vertices(self):
201-
# XXX how can this possibly work?
202201
verts = self._marker
203-
path = Path(verts)
204-
self._set_custom_marker(path)
202+
marker = Path(verts)
203+
self._set_custom_marker(marker)
205204

206205
def _set_tuple_marker(self):
207206
marker = self._marker

lib/matplotlib/offsetbox.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ def _get_packed_offsets(wd_list, total, sep, mode="fixed"):
9595

9696
def _get_aligned_offsets(hd_list, height, align="baseline"):
9797
"""
98-
Geiven a list of (height, descent) of each boxes, align the boxes
98+
Given a list of (height, descent) of each boxes, align the boxes
9999
with *align* and calculate the y-offsets of each boxes.
100100
total width and the offset positions of each items according to
101-
*mode*. xdescent is analagous to the usual descent, but along the
101+
*mode*. xdescent is analogous to the usual descent, but along the
102102
x-direction. xdescent values are currently ignored.
103103
104104
*hd_list* : list of (width, xdescent) of boxes to be aligned.
@@ -257,7 +257,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
257257
258258
.. note::
259259
*pad* and *sep* need to given in points and will be
260-
scale with the renderer dpi, while *width* and *hight*
260+
scale with the renderer dpi, while *width* and *height*
261261
need to be in pixels.
262262
"""
263263
super(PackerBase, self).__init__()
@@ -275,7 +275,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
275275
class VPacker(PackerBase):
276276
"""
277277
The VPacker has its children packed vertically. It automatically
278-
adjust the relative postisions of children in the drawing time.
278+
adjust the relative positions of children in the drawing time.
279279
"""
280280
def __init__(self, pad=None, sep=None, width=None, height=None,
281281
align="baseline", mode="fixed",
@@ -290,7 +290,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
290290
291291
.. note::
292292
*pad* and *sep* need to given in points and will be
293-
scale with the renderer dpi, while *width* and *hight*
293+
scale with the renderer dpi, while *width* and *height*
294294
need to be in pixels.
295295
"""
296296
super(VPacker, self).__init__(pad, sep, width, height,
@@ -342,7 +342,7 @@ def get_extent_offsets(self, renderer):
342342
class HPacker(PackerBase):
343343
"""
344344
The HPacker has its children packed horizontally. It automatically
345-
adjust the relative postisions of children in the drawing time.
345+
adjust the relative positions of children in the drawing time.
346346
"""
347347
def __init__(self, pad=None, sep=None, width=None, height=None,
348348
align="baseline", mode="fixed",
@@ -357,7 +357,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
357357
358358
.. note::
359359
*pad* and *sep* need to given in points and will be
360-
scale with the renderer dpi, while *width* and *hight*
360+
scale with the renderer dpi, while *width* and *height*
361361
need to be in pixels.
362362
"""
363363
super(HPacker, self).__init__(pad, sep, width, height,
@@ -366,7 +366,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
366366

367367
def get_extent_offsets(self, renderer):
368368
"""
369-
update offset of childrens and return the extents of the box
369+
update offset of children and return the extents of the box
370370
"""
371371

372372
dpicor = renderer.points_to_pixels(1.)
@@ -414,7 +414,7 @@ def __init__(self, child, pad=None, draw_frame=False, patch_attrs=None):
414414
415415
.. note::
416416
*pad* need to given in points and will be
417-
scale with the renderer dpi, while *width* and *hight*
417+
scale with the renderer dpi, while *width* and *height*
418418
need to be in pixels.
419419
"""
420420

@@ -770,12 +770,12 @@ class AuxTransformBox(OffsetBox):
770770
Offset Box with the aux_transform . Its children will be
771771
transformed with the aux_transform first then will be
772772
offseted. The absolute coordinate of the aux_transform is meaning
773-
as it will be automaticcaly adjust so that the left-lower corner
773+
as it will be automatically adjust so that the left-lower corner
774774
of the bounding box of children will be set to (0,0) before the
775-
offset trnasform.
775+
offset transform.
776776
777777
It is similar to drawing area, except that the extent of the box
778-
is not predetemined but calculated from the window extent of its
778+
is not predetermined but calculated from the window extent of its
779779
children. Furthermore, the extent of the children will be
780780
calculated in the transformed coordinate.
781781
"""
@@ -820,7 +820,7 @@ def set_offset(self, xy):
820820
"""
821821
set offset of the container.
822822
823-
Accept : tuple of x,y cooridnate in disokay units.
823+
Accept : tuple of x,y coordinate in disokay units.
824824
"""
825825
self._offset = xy
826826

@@ -882,7 +882,7 @@ class AnchoredOffsetbox(OffsetBox):
882882
"""
883883
An offset box placed according to the legend location
884884
loc. AnchoredOffsetbox has a single child. When multiple children
885-
is needed, use other OffsetBox class to enlose them. By default,
885+
is needed, use other OffsetBox class to enclose them. By default,
886886
the offset box is anchored against its parent axes. You may
887887
explicitly specify the bbox_to_anchor.
888888
"""
@@ -1197,7 +1197,7 @@ def get_zoom(self):
11971197
# """
11981198
# set offset of the container.
11991199

1200-
# Accept : tuple of x,y cooridnate in disokay units.
1200+
# Accept : tuple of x,y coordinate in disokay units.
12011201
# """
12021202
# self._offset = xy
12031203

0 commit comments

Comments
 (0)
0