Skip to content

Commit

Permalink
LINT: Long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Jun 12, 2024
1 parent 2829d52 commit 8a4881a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions plotnine/_mpl/_plotnine_tight_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion plotnine/_mpl/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8a4881a

Please sign in to comment.