From b588d9afc020f88026da49c6de3fb032bbaacead Mon Sep 17 00:00:00 2001 From: Will Robertson Date: Mon, 25 Mar 2024 21:57:48 +1030 Subject: [PATCH] doc img fix --- docs/sankey_doc_examples.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/sankey_doc_examples.py b/docs/sankey_doc_examples.py index 675062f..279f2f7 100644 --- a/docs/sankey_doc_examples.py +++ b/docs/sankey_doc_examples.py @@ -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() @@ -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,