How to align an object relative to nodes of another object in Inkscape?
I'd like to align one object to the nodes of another object. In the screenshot below, I'd like to horizontally align the text below to the axis marker that's represented by the two selected nodes above.
I could duplicate the axis, select all nodes that don't belong to that small vertical line, delete them, do the alignment and then delete the temporary object. But since I didn't even find a way to invert the selection of nodes, this process is very laborious and error-prone. So any better way to do this is much appreciated!
What I would do in this case is the following:
Select the two nodes relevant for alignment
Choose Path > Break apart to generate a separate object from the vertical line.
Select first the text, then the vertical line
Now open Object > Align and distribute with setting Relative to Last selected
Align the objects according to needs:
To align the left of the text choose Align left edge to right edge of anchor:
To center choose Center on vertical axis:
Now select the horizontal top line and the vertical line and choose Path > Combine to combine them to one object again.
- create another vertical segment
- center align it with the '1/4pi' text
- copy the "x" value of a node of this segment
- apply it to the two selected nodes.