Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plotnine/_mpl/layout_manager/_composition_side_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def resize_gridspec(self):
Apply the space calculations to the sub_gridspec

After calling this method, the sub_gridspec will be appropriately
sized to accomodate the content of the annotations.
sized to accommodate the content of the annotations.
"""
gsparams = self.calculate_gridspec_params()
self.sub_gridspec.update_params_and_artists(gsparams)
Expand Down
2 changes: 1 addition & 1 deletion plotnine/_mpl/layout_manager/_plot_layout_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ def set_position(

def _position_plot_tag(tag: Text, spaces: PlotSideSpaces):
"""
Set the postion of the plot_tag
Set the position of the plot_tag
"""
theme = spaces.plot.theme
panels_gs = spaces.plot._sub_gridspec
Expand Down
2 changes: 1 addition & 1 deletion plotnine/_mpl/layout_manager/_plot_side_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ def resize_gridspec(self):
Apply the space calculations to the sub_gridspec

After calling this method, the sub_gridspec will be appropriately
sized to accomodate the artists around the panels.
sized to accommodate the artists around the panels.
"""
gsparams = self.calculate_gridspec_params()
self.sub_gridspec.update_params_and_artists(gsparams)
Expand Down
2 changes: 1 addition & 1 deletion plotnine/_mpl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def horizontally_across_panel(
self, text: Text, ha: HorizontalJustification | float
):
"""
Horizontally Justify text accross the panel(s) width
Horizontally Justify text across the panel(s) width
"""
self.horizontally(
text, ha, self.boundaries.panel_left, self.boundaries.panel_right
Expand Down
2 changes: 1 addition & 1 deletion plotnine/facets/labelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def as_labeller(
multi_line: bool = True,
) -> labeller:
"""
Coerse to labeller
Coerce to labeller

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion plotnine/scales/scale_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class scale_datetime(scale_continuous):
- `(0, timedelta(days=1))` - Expand lower and upper limits by 1 day.
- `(1, 0)` - Expand lower and upper limits by 100%.
- `(0, 0, 0, timedelta(hours=6))` - Expand upper limit by 6 hours.
- `(0, timedelta(minutes=5), 0.1, timdelta(0))` - Expand lower limit
- `(0, timedelta(minutes=5), 0.1, timedelta(0))` - Expand lower limit
by 5 minutes and upper limit by 10%.
- `(0, 0, 0.1, timedelta(weeks=2))` - Expand upper limit by 10% plus
2 weeks.
Expand Down
2 changes: 1 addition & 1 deletion plotnine/stats/stat_qq.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def theoretical_qq(
distribution_params: dict[str, Any],
) -> FloatArray:
"""
Caculate theoretical qq distribution
Calculate theoretical qq distribution
"""
from scipy.stats.mstats import plotting_positions

Expand Down
2 changes: 1 addition & 1 deletion plotnine/themes/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def getp(self):

def get_margin(self, name: str) -> margin:
"""
Return the margin propery of a element_text themeables
Return the margin property of a element_text themeables
"""
return self.themeables.getp((name, "margin"))

Expand Down
4 changes: 2 additions & 2 deletions plotnine/themes/themeable.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def getp(self, key: str | tuple[str, str], default: Any = None) -> Any:

def get_ha(self, name: str) -> float:
"""
Get the horizontal alignement of themeable as a float
Get the horizontal alignment of themeable as a float

The themeable should be and element_text
"""
Expand All @@ -398,7 +398,7 @@ def get_ha(self, name: str) -> float:

def get_va(self, name) -> float:
"""
Get the vertical alignement of themeable as a float
Get the vertical alignment of themeable as a float

The themeable should be and element_text
"""
Expand Down
Loading