efficient way of drawing graphs?

Post questions on how to use or achieve an effect in Inkscape.
cl10k
Posts: 3
Joined: Wed Aug 31, 2016 8:03 am

efficient way of drawing graphs?

Postby cl10k » Wed Aug 31, 2016 9:14 am

Hello everyone,

I frequently have to draw complex graphs with connected knots (see Pic1).
With my current workflow, the construction of those graph is very tedious (I don’t have much practice with Inkscape).

The knots consist of three parts (see Pic2):
Text, empty circle as an outline and a slighter bigger white circle for the background

The connection between the knots is done the following way (see Pic3):
1) Snapping a line from center to center
2) Cutpath the line with copies of the white circles (I don’t want the line to touch the black circles, there should be a small gap.)
3) setting the arrowhead as an endmarker

You can probably imagine, that this workflow is a catastrophe for bigger graphs (my next one has 60 knots). It would be very convenient, if I could rearrange the knots afterwards without everything falling apart and the lines loosing their relative position.

Do you have any suggestions on how to improve my workflow or maybe even creating a generic knot shape with a connector? Every small hint would be greatly appriciated!
Attachments
Pic1.JPG
Pic1.JPG (38.22 KiB) Viewed 1456 times
Pic2.JPG
Pic2.JPG (15.98 KiB) Viewed 1456 times
Pic3.JPG
Pic3.JPG (46.64 KiB) Viewed 1456 times
Last edited by cl10k on Fri Sep 02, 2016 9:19 am, edited 1 time in total.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: efficient way of drawning graphs?

Postby Lazur » Wed Aug 31, 2016 10:09 am

Hi.

You could try using a custom marker containing a white rectangle and a black arrow, making it unnecessary to trim the paths -just snapping nodes to circle-object midpoints would be enough.

cl10k
Posts: 3
Joined: Wed Aug 31, 2016 8:03 am

Re: efficient way of drawning graphs?

Postby cl10k » Thu Sep 01, 2016 9:23 am

:) Thanks so much!

I didn't know about custom markers. After some tests, I'm sure that will improve my workflow a lot!

Is there a way, to constraint endpoints of lines to circle centers, that when I move the circle, the linepoint follows?

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: efficient way of drawning graphs?

Postby Moini » Thu Sep 01, 2016 10:59 am

Connector tool exists, but is buggy. Try for yourself if it works well enough for your purpose (I sometimes try, but usually give up in exasperation):
http://en.flossmanuals.net/inkscape/too ... ctor-tool/
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: efficient way of drawning graphs?

Postby Lazur » Thu Sep 01, 2016 11:05 am

Thinking it over I'd rather not suggest that previous method.
Instead use the connector tool.
Should work like a charm.


Edit: Yes, that one Moini wrote.

cl10k
Posts: 3
Joined: Wed Aug 31, 2016 8:03 am

Re: efficient way of drawning graphs?

Postby cl10k » Thu Sep 01, 2016 6:55 pm

Connector Tool in combination with a custom end marker seems to work fine for me (atleast now).

Thank you both for that excellent solution. You saved me alot of time! :)


Return to “Help with using Inkscape”