From 905a35993b926310f8b62dc7b2cc5caac5a4978c Mon Sep 17 00:00:00 2001 From: Ethan Knights Date: Fri, 25 Sep 2026 09:34:40 +0000 Subject: [PATCH 1/3] typos --- doc/Makefile | 2 +- plotnine/scales/scale.py | 2 +- plotnine/scales/scale_continuous.py | 4 ++-- plotnine/scales/scale_discrete.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 5ab854215b..6194f679a8 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -5,7 +5,7 @@ # make target # Use uv (if it is installed) to run all python related commands, -# and prefere the active environment over .venv in a parent folder +# and prefer the active environment over .venv in a parent folder ifeq ($(OS),Windows_NT) HAS_UV := $(if $(shell where uv 2>NUL),true,false) else diff --git a/plotnine/scales/scale.py b/plotnine/scales/scale.py index 45dffc768e..1a54914c1e 100644 --- a/plotnine/scales/scale.py +++ b/plotnine/scales/scale.py @@ -179,7 +179,7 @@ def train(self, x: pd.Series | NDArray): def dimension(self, expand=None, limits=None): """ - Get the phyical size of the scale. + Get the physical size of the scale. """ raise NotImplementedError diff --git a/plotnine/scales/scale_continuous.py b/plotnine/scales/scale_continuous.py index 3ae8f98fb7..1efbcc8db2 100644 --- a/plotnine/scales/scale_continuous.py +++ b/plotnine/scales/scale_continuous.py @@ -287,7 +287,7 @@ def is_log_scale(self) -> bool: def dimension(self, expand=(0, 0, 0, 0), limits=None): """ - Get the phyical size of the scale + Get the physical size of the scale Unlike limits, this always returns a numeric vector of length 2 """ @@ -385,7 +385,7 @@ def to_num(x) -> float: def palette(self, x): """ - Map an data values to values of the scale + Map data values to values of the scale """ return identity_pal()(x) diff --git a/plotnine/scales/scale_discrete.py b/plotnine/scales/scale_discrete.py index 557ec1373b..97d2a3551c 100644 --- a/plotnine/scales/scale_discrete.py +++ b/plotnine/scales/scale_discrete.py @@ -106,7 +106,7 @@ def train(self, x: AnyArrayLike, drop=False): def dimension(self, expand=(0, 0, 0, 0), limits=None): """ - Get the phyical size of the scale + Get the physical size of the scale Unlike limits, this always returns a numeric vector of length 2 """ From aa91df9e736c47f5c618da6e9e8a4dce700235fd Mon Sep 17 00:00:00 2001 From: Ethan Knights Date: Fri, 25 Sep 2026 09:36:19 +0000 Subject: [PATCH 2/3] mpl typo --- plotnine/_mpl/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plotnine/_mpl/text.py b/plotnine/_mpl/text.py index c213224d6f..d8edd749c2 100644 --- a/plotnine/_mpl/text.py +++ b/plotnine/_mpl/text.py @@ -86,8 +86,8 @@ def _line_height(self, renderer) -> float: PlotnineWarning, ) else: - # The the text has multiple lines, we use the maximum height - # of anyone single line. + # If the text has multiple lines, use the maximum height + # of any single line. height = max([p[1][1] for p in parts]) return height From 9b4399b426cd68a720dc16792a6234c0da4a9a03 Mon Sep 17 00:00:00 2001 From: Ethan Knights Date: Fri, 25 Sep 2026 09:36:50 +0000 Subject: [PATCH 3/3] docs language style --- plotnine/iapi.py | 2 +- plotnine/labels.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plotnine/iapi.py b/plotnine/iapi.py index c41c8de504..b3925f2f44 100644 --- a/plotnine/iapi.py +++ b/plotnine/iapi.py @@ -269,7 +269,7 @@ def is_bottom(self) -> bool: @dataclass class strip_label_details: """ - Strip Label Details + Strip label details """ # facet variable: label for the value diff --git a/plotnine/labels.py b/plotnine/labels.py index 70d2d9db56..0a9a76bf1c 100644 --- a/plotnine/labels.py +++ b/plotnine/labels.py @@ -92,14 +92,14 @@ class labs: footer: str | None = None """ - The footer at the bottom of the plot + The footer at the bottom of the plot. - The footer when added is below the caption + The footer when added is below the caption. """ tag: str | None = None """ - A plot tag + Tag for the plot. """ def __post_init__(self): @@ -120,7 +120,7 @@ def __radd__(self, other: p9.ggplot) -> p9.ggplot: class xlab(labs): """ - Label/name for the x aesthetic + Label/Name for the x aesthetic. Parameters ---------- @@ -134,7 +134,7 @@ def __init__(self, label: str): class ylab(labs): """ - Label/name for the y aesthetic + Label/Name for the y aesthetic. Parameters ----------