From 0171823b26b1b4445340406b71d803ac05e4af48 Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Thu, 1 Aug 2024 13:53:45 +0300 Subject: [PATCH] Fix geom_segment not to ignore the lineend parameter fixes #854 --- doc/changelog.qmd | 3 +++ plotnine/geoms/geom_segment.py | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/changelog.qmd b/doc/changelog.qmd index 956dfb9a8..0470e06db 100644 --- a/doc/changelog.qmd +++ b/doc/changelog.qmd @@ -35,6 +35,9 @@ title: Changelog - Fix layers 3 and above not to overlap the axis lines if there are any ({{< issue 798 >}}). +- Fixed bug in [](:class:`~plotnine.geoms.geom_segment`) where the lineend + parameter was ignored. ({{< issue 727 >}}) + ## v0.13.6 (2024-05-09) diff --git a/plotnine/geoms/geom_segment.py b/plotnine/geoms/geom_segment.py index 34ed43574..0b0d0d5de 100644 --- a/plotnine/geoms/geom_segment.py +++ b/plotnine/geoms/geom_segment.py @@ -82,6 +82,7 @@ def draw_group( edgecolor=color, linewidth=linewidth, linestyle=data["linetype"][0], + capstyle=params.get("lineend", None), zorder=params["zorder"], rasterized=params["raster"], )