@@ -95,10 +95,10 @@ def _get_packed_offsets(wd_list, total, sep, mode="fixed"):
95
95
96
96
def _get_aligned_offsets (hd_list , height , align = "baseline" ):
97
97
"""
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
99
99
with *align* and calculate the y-offsets of each boxes.
100
100
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
102
102
x-direction. xdescent values are currently ignored.
103
103
104
104
*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,
257
257
258
258
.. note::
259
259
*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 *
261
261
need to be in pixels.
262
262
"""
263
263
super (PackerBase , self ).__init__ ()
@@ -275,7 +275,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
275
275
class VPacker (PackerBase ):
276
276
"""
277
277
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.
279
279
"""
280
280
def __init__ (self , pad = None , sep = None , width = None , height = None ,
281
281
align = "baseline" , mode = "fixed" ,
@@ -290,7 +290,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
290
290
291
291
.. note::
292
292
*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 *
294
294
need to be in pixels.
295
295
"""
296
296
super (VPacker , self ).__init__ (pad , sep , width , height ,
@@ -342,7 +342,7 @@ def get_extent_offsets(self, renderer):
342
342
class HPacker (PackerBase ):
343
343
"""
344
344
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.
346
346
"""
347
347
def __init__ (self , pad = None , sep = None , width = None , height = None ,
348
348
align = "baseline" , mode = "fixed" ,
@@ -357,7 +357,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
357
357
358
358
.. note::
359
359
*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 *
361
361
need to be in pixels.
362
362
"""
363
363
super (HPacker , self ).__init__ (pad , sep , width , height ,
@@ -366,7 +366,7 @@ def __init__(self, pad=None, sep=None, width=None, height=None,
366
366
367
367
def get_extent_offsets (self , renderer ):
368
368
"""
369
- update offset of childrens and return the extents of the box
369
+ update offset of children and return the extents of the box
370
370
"""
371
371
372
372
dpicor = renderer .points_to_pixels (1. )
@@ -414,7 +414,7 @@ def __init__(self, child, pad=None, draw_frame=False, patch_attrs=None):
414
414
415
415
.. note::
416
416
*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 *
418
418
need to be in pixels.
419
419
"""
420
420
@@ -770,12 +770,12 @@ class AuxTransformBox(OffsetBox):
770
770
Offset Box with the aux_transform . Its children will be
771
771
transformed with the aux_transform first then will be
772
772
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
774
774
of the bounding box of children will be set to (0,0) before the
775
- offset trnasform .
775
+ offset transform .
776
776
777
777
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
779
779
children. Furthermore, the extent of the children will be
780
780
calculated in the transformed coordinate.
781
781
"""
@@ -820,7 +820,7 @@ def set_offset(self, xy):
820
820
"""
821
821
set offset of the container.
822
822
823
- Accept : tuple of x,y cooridnate in disokay units.
823
+ Accept : tuple of x,y coordinate in disokay units.
824
824
"""
825
825
self ._offset = xy
826
826
@@ -882,7 +882,7 @@ class AnchoredOffsetbox(OffsetBox):
882
882
"""
883
883
An offset box placed according to the legend location
884
884
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,
886
886
the offset box is anchored against its parent axes. You may
887
887
explicitly specify the bbox_to_anchor.
888
888
"""
@@ -1197,7 +1197,7 @@ def get_zoom(self):
1197
1197
# """
1198
1198
# set offset of the container.
1199
1199
1200
- # Accept : tuple of x,y cooridnate in disokay units.
1200
+ # Accept : tuple of x,y coordinate in disokay units.
1201
1201
# """
1202
1202
# self._offset = xy
1203
1203
0 commit comments