From 8a4881ad4484fd93374151d47248f7d6624cb8ca Mon Sep 17 00:00:00 2001 From: Hassan Kibirige Date: Wed, 12 Jun 2024 20:09:39 +0300 Subject: [PATCH] LINT: Long lines --- plotnine/_mpl/_plotnine_tight_layout.py | 8 ++++++-- plotnine/_mpl/patches.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plotnine/_mpl/_plotnine_tight_layout.py b/plotnine/_mpl/_plotnine_tight_layout.py index 1b52c4cd2..f7729148b 100644 --- a/plotnine/_mpl/_plotnine_tight_layout.py +++ b/plotnine/_mpl/_plotnine_tight_layout.py @@ -171,12 +171,16 @@ def set_figure_artist_positions( if pack.plot_caption: ha = theme.getp(("plot_caption", "ha"), "right") pack.plot_caption.set_y(sides.b.edge("plot_caption")) - horizontally_align_text_with_panels(pack.plot_caption, params, ha, pack) + horizontally_align_text_with_panels( + pack.plot_caption, params, ha, pack + ) if pack.axis_title_x: ha = theme.getp(("axis_title_x", "ha"), "center") pack.axis_title_x.set_y(sides.b.edge("axis_title_x")) - horizontally_align_text_with_panels(pack.axis_title_x, params, ha, pack) + horizontally_align_text_with_panels( + pack.axis_title_x, params, ha, pack + ) if pack.axis_title_y: va = theme.getp(("axis_title_y", "va"), "center") diff --git a/plotnine/_mpl/patches.py b/plotnine/_mpl/patches.py index b9f67a246..5e3cb6dd6 100644 --- a/plotnine/_mpl/patches.py +++ b/plotnine/_mpl/patches.py @@ -81,7 +81,7 @@ class InsideStrokedRectangle(Rectangle): @artist.allow_rasterization def draw(self, renderer): """ - Draw with the bounds of the rectangle adjusted to accommodate the stroke + Draw with the bounds of the rectangle adjusted to contain the stroke """ x, y = self.xy w, h = self.get_width(), self.get_height()