Skip to content

Commit

Permalink
style fixes by ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr authored and github-actions[bot] committed Mar 17, 2024
1 parent afb6d61 commit 174c49e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ausankey/ausankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,8 @@ def draw_bar(x, y, dy, label):
barpos[1][lbl_r]["top"],
]
# leftmost title
title_lr = [0,1] if ii == 0 else [1]
title_lr = [0, 1] if ii == 0 else [1]

for lr in title_lr:
if title_side in ("top", "both"):
if title_loc == "outer":
Expand All @@ -421,7 +421,7 @@ def draw_bar(x, y, dy, label):
ax.text(
title_x[lr],
yt,
titles[ii+lr],
titles[ii + lr],
{"ha": "center", "va": "bottom"},
fontsize=fontsize,
)
Expand All @@ -430,11 +430,11 @@ def draw_bar(x, y, dy, label):
if title_loc == "outer":
yt = min(voffset) - y_title_gap - y_frame_gap
elif title_loc == "inner":
yt = voffset[ii+lr] - y_title_gap
yt = voffset[ii + lr] - y_title_gap
ax.text(
title_x[lr],
yt,
titles[ii+lr],
titles[ii + lr],
{"ha": "center", "va": "top"},
fontsize=fontsize,
)
Expand Down

0 comments on commit 174c49e

Please sign in to comment.