Author Topic: Sankey diagram with tubular effects  (Read 1172 times)

February 02, 2018, 10:48:12 AM
Read 1172 times

resteves

  • Sr. Newbie

  • Offline
  • **

  • 2
Hi,
I am trying to create a sankey graph but with a 3d tubular touch.
So, I created the attached drawing (drawing1.png), and combined the several segments into a unique element. Then, I tried to fill it with a gradient, but the result was odd (drawing2.png).
What am I doing wrong and how to create an effect that make it feel like tubes connected? I know that the simple gradient fill would not give the 3d sensation I am looking for.
Thank you.
  • 0,92
  • Win 10

February 03, 2018, 12:33:53 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

When you say you combined several segments into one, do you mean that you used Path menu > Combine?

Even though you've made one compound path, with several sub-paths, you still have to connect the nodes, to be able to fill it properly.  Here's how to connect the nodes.

If 2 end nodes are on top of each other, you can select both by dragging a small selection box around them, with the Node tool.  If they aren't on top of each other, you can select one at a time, while holding the Shift key, to end up with both selected.

Then click "Join selected nodes" button on the Node tool control bar.  It looks like this :jsn:  Or else there's a key shortcut, which you can find at Help menu > Key and Mouse Reference.

You'll need to closely inspect all the paths (with Node tool), to make sure thay are all connected.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

February 04, 2018, 09:33:26 AM
Reply #2

resteves

  • Sr. Newbie

  • Offline
  • **

  • 2
Hi,
Thank you for the help. It solved my problem.
For some of the node pairs I had to use the simple join nodes, and other I had to use the join nodes with a new segment - It seems that I might have created wrong segment ends.
Thank you,
Rui
 :ty1:
  • 0,92
  • Win 10

February 05, 2018, 02:12:38 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Good news!  You're welcome :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann