Skip to content

Commit

Permalink
damn conflict resolutions, don't
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Mar 25, 2024
1 parent 203f91a commit 543a44c
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions ausankey/ausankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,24 +529,9 @@ def draw_label(x, y, label, ha):
xx = x_lr[lr] - x_label_gap
elif label_loc[2] in ("right"):
xx = x_lr[lr] + x_label_gap + x_node_width
ha = "left"
draw_label(
xx,
node_pos_bot[lr][label] + node_sizes[ii + lr][label] / 2,
label,
ha,
)

if ii == num_flow - 1 and label_loc[2] != "none": # last time
if label_loc[2] in ("left"):
xx = x_lr[lr] - x_label_gap
ha = "right"
elif label_loc[2] in ("right"):
xx = x_lr[lr] + x_label_gap + x_node_width
ha = "left"
elif label_loc[2] in ("center"):
xx = x_lr[lr] + x_node_width / 2
ha = "center"
elif label_loc[2] in ("center"):
xx = x_lr[lr] + x_node_width / 2
for label in nodes_lr[lr]:
draw_label(
xx,
node_pos_bot[lr][label] + node_sizes[ii + lr][label] / 2,
Expand Down

0 comments on commit 543a44c

Please sign in to comment.