Achieving consistency in layout of figures

Post questions on how to use or achieve an effect in Inkscape.
seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Achieving consistency in layout of figures

Postby seans_potato_biz » Thu Nov 05, 2015 3:06 am

I'm assembling figures for my work in Inkscape. I would like to know if there are features I can use to ensure that labels are consistent distances away from images. Consider the red arrows in this cropped screenshot below - how do I make sure that the indicated distances are identical (they actually look pretty close). I can think of a way to do it but it's cumbersome and I hope that there are better features I'm not yet aware of.

Image
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

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

Re: Achieving consistency in layout of figures

Postby Lazur » Thu Nov 05, 2015 3:37 am

You can use align and distribute or snapping to guide lines.

Alignment is based on the object's bounding box, so you may use a "spacer object". Like group each text with a larger, transparent rectangle.
It can also help with snapping, as then you can use snapping of cusp nodes -corners of the rectangles- (texts would need converting to paths otherwise).

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

Re: Achieving consistency in layout of figures

Postby Moini » Thu Nov 05, 2015 3:39 am

To align the labels in a single row, select them all, then click on this in the Align&Distribute dialog (Shift+Ctrl+A):
Bildschirmfoto_2015-11-04_18-31-04.png
Bildschirmfoto_2015-11-04_18-31-04.png (31.62 KiB) Viewed 1316 times

For the 'relative to' dropdown, select 'first selected'.

To then have even spacing for both of the rows, a quick way is to create a 'spacer object', that you throw away later.
Align the spacer object (a rectangle is quick) to the top of the electrophoresis, then align the grouped and bottom-aligned (see above) labels to the top of the spacer object (same dialog, different buttons - the button right of the mouse cursor).

Use the same spacer object or a duplicate of it for the other row.

You could also use regularly arranged guides or a grid that you can just snap to.
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)

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

Re: Achieving consistency in layout of figures

Postby Moini » Thu Nov 05, 2015 3:40 am

(what a timing, Lazur ;) )
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)

seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Re: Achieving consistency in layout of figures

Postby seans_potato_biz » Thu Nov 05, 2015 8:28 pm

I guess grids or spacer objects are the best way to achieve this in 0.91. Thanks a lot!
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.


Return to “Help with using Inkscape”