From 18b748fab0c8b0c6e9ab28090982ecf2c054cefc Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Tue, 21 Nov 2023 09:27:27 +0300 Subject: [PATCH] Fix geom_line not to ignore the lineend parameter fixes #727 --- doc/changelog.rst | 3 +++ plotnine/geoms/geom_path.py | 1 + 2 files changed, 4 insertions(+) diff --git a/doc/changelog.rst b/doc/changelog.rst index 4528ca4d7..58489e95d 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -61,6 +61,9 @@ Bug Fixes - Fixed space handling around `axis_label`, `axis_text` and `axis_ticks` when the ticks are turned off. +- Fixed bug in :class:`~plotnine.geoms.geom_path` where the lineend parameter + was ignored. (:issue:`727`) + Enhancements ************ diff --git a/plotnine/geoms/geom_path.py b/plotnine/geoms/geom_path.py index 57518060d..596440a3d 100644 --- a/plotnine/geoms/geom_path.py +++ b/plotnine/geoms/geom_path.py @@ -476,6 +476,7 @@ def _draw_segments(data: pd.DataFrame, ax: Axes, **params: Any): edgecolor=edgecolor, linewidth=linewidth, linestyle=linestyle, + capstyle=params["lineend"], zorder=params["zorder"], rasterized=params["raster"], )