ricklupton / floweaver

View flow data as Sankey diagrams
https://floweaver.readthedocs.io
MIT License
447 stars 89 forks source link

Starting new flows from waypoints and preserving order #128

Open gsgoncalves opened 1 year ago

gsgoncalves commented 1 year ago

Hi,

Great project! I was wondering if I could adapt this framework for my use case.

I need new flows to start at waypoints and add them to the following waypoints so that each flow has a distinct waypoint level.

For example: Here Banana appears at level 2, passes through the second waypoint, and finishes with the other flows that begin at the start. Great!

flow-1-example

Question 1: Can I add this same functionality for an arbitrary number of flows that may start at any waypoint and continue until the end? Question 2: Moreover, the new flows such as "Banana" can start at any position, including between the original flows?

I have managed to produce the following 2 outputs, but they are not preserving a waypoint level for each flow, and I cannot make the new flow start between any of the original flows.

flow-2-example

flow-3-example

Code for generating example 1

Code for generating example 2

Code for generating example 3

Does anyone know how to do this, or if it is possible?

Question 3: Is it possible to add free text labels without breaking the flows?

Thank you!

ricklupton commented 1 year ago

Hi Gustavo,

Would you be able to draw a quick sketch of what you want the result to look like ideally?

On Sun, 9 Oct 2022, at 11:06 PM, Gustavo Gonçalves wrote:

Hi,

Great project! I was wondering if I could adapt this framework for my use case.

I need new flows to start at waypoints and add them to the following waypoints so that each flow has a distinct waypoint level.

For example: Here Banana appears at level 2, passes through the second waypoint, and finishes with the other flows that begin at the start. Great!

flow-1-example https://user-images.githubusercontent.com/11768325/194781141-3b8e0c40-0bba-49d9-9d0e-c548f190882d.png

Question 1: Can I add this same functionality for an arbitrary number of flows that may start at any waypoint and continue until the end? Question 2: Moreover, the new flows such as "Banana" can start at any position, including between the original flows?

I have managed to produce the following 2 outputs, but they are not preserving a waypoint level for each flow, and I cannot make the new flow start between any of the original flows.

flow-2-example https://user-images.githubusercontent.com/11768325/194781338-7d8832ed-f2c1-47d1-b3a6-6ed040a40695.png

flow-3-example https://user-images.githubusercontent.com/11768325/194781342-3bca745a-7ab7-4c7a-aaae-4e067211cf93.png

Code for generating example 1 https://pastebin.com/f2scbi6F

Code for generating example 2 https://pastebin.com/ES1Z6hm7

Code for generating example 3 https://pastebin.com/0wFJfNPv

Does anyone know how to do this, or if it is possible?

Question 3: Is it possible to add free text labels without breaking the flows?

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/ricklupton/floweaver/issues/128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGWRSTNGTDJ5CZSFUMVNELWCM6VZANCNFSM6AAAAAARA3UE6Q. You are receiving this because you are subscribed to this thread.Message ID: @.***>