Skip to content

Commit 4f4b309

Browse files
maxtaran2010has2k1
authored andcommitted
fix: correct typos in docstrings and comments
- facets/labelling.py: "Coerse" -> "Coerce" - _mpl/utils.py: "accross" -> "across" - _mpl/layout_manager/_composition_side_space.py: "accomodate" -> "accommodate" - _mpl/layout_manager/_plot_layout_items.py: "postion" -> "position" - _mpl/layout_manager/_plot_side_space.py: "accomodate" -> "accommodate" - scales/scale_datetime.py: "timdelta" -> "timedelta" - stats/stat_qq.py: "Caculate" -> "Calculate" - themes/theme.py: "propery" -> "property" - themes/themeable.py: "alignement" -> "alignment" (x2)
1 parent 2ce6fdb commit 4f4b309

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

plotnine/_mpl/layout_manager/_composition_side_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def resize_gridspec(self):
452452
Apply the space calculations to the sub_gridspec
453453
454454
After calling this method, the sub_gridspec will be appropriately
455-
sized to accomodate the content of the annotations.
455+
sized to accommodate the content of the annotations.
456456
"""
457457
gsparams = self.calculate_gridspec_params()
458458
self.sub_gridspec.update_params_and_artists(gsparams)

plotnine/_mpl/layout_manager/_plot_layout_items.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ def set_position(
10961096

10971097
def _position_plot_tag(tag: Text, spaces: PlotSideSpaces):
10981098
"""
1099-
Set the postion of the plot_tag
1099+
Set the position of the plot_tag
11001100
"""
11011101
theme = spaces.plot.theme
11021102
panels_gs = spaces.plot._sub_gridspec

plotnine/_mpl/layout_manager/_plot_side_space.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ def resize_gridspec(self):
10021002
Apply the space calculations to the sub_gridspec
10031003
10041004
After calling this method, the sub_gridspec will be appropriately
1005-
sized to accomodate the artists around the panels.
1005+
sized to accommodate the artists around the panels.
10061006
"""
10071007
gsparams = self.calculate_gridspec_params()
10081008
self.sub_gridspec.update_params_and_artists(gsparams)

plotnine/_mpl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def horizontally_across_panel(
405405
self, text: Text, ha: HorizontalJustification | float
406406
):
407407
"""
408-
Horizontally Justify text accross the panel(s) width
408+
Horizontally Justify text across the panel(s) width
409409
"""
410410
self.horizontally(
411411
text, ha, self.boundaries.panel_left, self.boundaries.panel_right

plotnine/facets/labelling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def as_labeller(
132132
multi_line: bool = True,
133133
) -> labeller:
134134
"""
135-
Coerse to labeller
135+
Coerce to labeller
136136
137137
Parameters
138138
----------

plotnine/scales/scale_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class scale_datetime(scale_continuous):
6565
- `(0, timedelta(days=1))` - Expand lower and upper limits by 1 day.
6666
- `(1, 0)` - Expand lower and upper limits by 100%.
6767
- `(0, 0, 0, timedelta(hours=6))` - Expand upper limit by 6 hours.
68-
- `(0, timedelta(minutes=5), 0.1, timdelta(0))` - Expand lower limit
68+
- `(0, timedelta(minutes=5), 0.1, timedelta(0))` - Expand lower limit
6969
by 5 minutes and upper limit by 10%.
7070
- `(0, 0, 0.1, timedelta(weeks=2))` - Expand upper limit by 10% plus
7171
2 weeks.

plotnine/stats/stat_qq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def theoretical_qq(
9595
distribution_params: dict[str, Any],
9696
) -> FloatArray:
9797
"""
98-
Caculate theoretical qq distribution
98+
Calculate theoretical qq distribution
9999
"""
100100
from scipy.stats.mstats import plotting_positions
101101

plotnine/themes/theme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def getp(self):
305305

306306
def get_margin(self, name: str) -> margin:
307307
"""
308-
Return the margin propery of a element_text themeables
308+
Return the margin property of a element_text themeables
309309
"""
310310
return self.themeables.getp((name, "margin"))
311311

plotnine/themes/themeable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def getp(self, key: str | tuple[str, str], default: Any = None) -> Any:
386386

387387
def get_ha(self, name: str) -> float:
388388
"""
389-
Get the horizontal alignement of themeable as a float
389+
Get the horizontal alignment of themeable as a float
390390
391391
The themeable should be and element_text
392392
"""
@@ -398,7 +398,7 @@ def get_ha(self, name: str) -> float:
398398

399399
def get_va(self, name) -> float:
400400
"""
401-
Get the vertical alignement of themeable as a float
401+
Get the vertical alignment of themeable as a float
402402
403403
The themeable should be and element_text
404404
"""

0 commit comments

Comments
 (0)