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.

Part of an X axis and a manual label

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!

2 Answers 2


What I would do in this case is the following:

  1. Select the two nodes relevant for alignment

    enter image description here

  2. Choose Path > Break apart to generate a separate object from the vertical line.

  3. Select first the text, then the vertical line

    enter image description here

  4. Now open Object > Align and distribute with setting Relative to Last selected

    enter image description here

  5. Align the objects according to needs:

    • To align the left of the text choose Align left edge to right edge of anchor: enter image description here

      enter image description here

    • To center choose Center on vertical axis: enter image description here

      enter image description here

  6. Now select the horizontal top line and the vertical line and choose Path > Combine to combine them to one object again.

  • "Break apart" was exactly the function I was searching for. That recombination step is optional for my case but it's good to know!
    – Christian
    Commented May 16, 2014 at 21:45
  • I am trying to do sort of the opposite, in the sense that I have an asymmetrical object that has a node that I want to align to another object. The node is not in the center of the object so the regular alignment functions do not work. Is there a way to do that? Commented Dec 2, 2023 at 21:23

I'd :

  • 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.
  • Wouldn't that align the nodes to the object and not the other way around? But of course it's a good idea and easily adapted: just use the x value of the nodes, copy them to the vertical segment and use it to align the text.
    – Christian
    Commented May 16, 2014 at 20:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.