Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

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!

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
    
"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 May 16 at 21:45

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.
share|improve this answer
    
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 May 16 at 20:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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