Skip to content

Commit

Permalink
doc img fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wspr committed Mar 25, 2024
1 parent be5e336 commit b588d9a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/sankey_doc_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
]
)

data3 = pd.DataFrame(
[
("a", 1.0, "ab", 2.0, "a" , 1.0),
("a", 1.0, "ba", 0.8, "ba", 0.4),
("c", 1.5, "cd", 0.5, "d" , 2.0),
("b", 0.5, "ba", 0.8, "ba", 0.4),
("b", 0.5, "ab", 0.8, "a" , 1.0),
("d", 2.0, "cd", 0.4, "d" , 1.0),
("e", 1.0, "e" , 1.0, "e" , 3.0),
]
)

plt.figure()
sky.sankey(data, colormap="jet")
plt.show()
Expand Down Expand Up @@ -171,18 +183,6 @@
"e": "#f78c1b",
}

data3 = pd.DataFrame(
[
("a", 1.0, "ab", 2.0, "a" , 1.0),
("a", 1.0, "ba", 0.8, "ba", 0.4),
("c", 1.5, "cd", 0.5, "d" , 2.0),
("b", 0.5, "ba", 0.8, "ba", 0.4),
("b", 0.5, "ab", 0.8, "a" , 1.0),
("d", 2.0, "cd", 0.4, "d" , 1.0),
("e", 1.0, "e" , 1.0, "e" , 3.0),
]
)

plt.figure(dpi=600)
sky.sankey(
data3,
Expand Down

0 comments on commit b588d9a

Please sign in to comment.