Tikz: draw path starting at an anchor and just going a specific distance in some angle

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I would like to draw a decoreted path starting at the anchor of one node and going in a specific direction for a specific distance.



I Found something like this:



draw(node.north) -- (50:2cm);


This schould go a distance of 2cm starting at node.north and going in an angle of 50. However, this did node work in my case.



My code:



draw[decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- (<???>);


The aim is to go straight 3cm up. So starting at stoer.north and ending 3cm above stoer.north (however maybe other directions should also be possible)



How could this work? I also tried something like



(stoer.north) -- (stoer.north shift (0,3));






share|improve this question
























    up vote
    2
    down vote

    favorite












    I would like to draw a decoreted path starting at the anchor of one node and going in a specific direction for a specific distance.



    I Found something like this:



    draw(node.north) -- (50:2cm);


    This schould go a distance of 2cm starting at node.north and going in an angle of 50. However, this did node work in my case.



    My code:



    draw[decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- (<???>);


    The aim is to go straight 3cm up. So starting at stoer.north and ending 3cm above stoer.north (however maybe other directions should also be possible)



    How could this work? I also tried something like



    (stoer.north) -- (stoer.north shift (0,3));






    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I would like to draw a decoreted path starting at the anchor of one node and going in a specific direction for a specific distance.



      I Found something like this:



      draw(node.north) -- (50:2cm);


      This schould go a distance of 2cm starting at node.north and going in an angle of 50. However, this did node work in my case.



      My code:



      draw[decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- (<???>);


      The aim is to go straight 3cm up. So starting at stoer.north and ending 3cm above stoer.north (however maybe other directions should also be possible)



      How could this work? I also tried something like



      (stoer.north) -- (stoer.north shift (0,3));






      share|improve this question












      I would like to draw a decoreted path starting at the anchor of one node and going in a specific direction for a specific distance.



      I Found something like this:



      draw(node.north) -- (50:2cm);


      This schould go a distance of 2cm starting at node.north and going in an angle of 50. However, this did node work in my case.



      My code:



      draw[decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- (<???>);


      The aim is to go straight 3cm up. So starting at stoer.north and ending 3cm above stoer.north (however maybe other directions should also be possible)



      How could this work? I also tried something like



      (stoer.north) -- (stoer.north shift (0,3));








      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 20 at 23:47









      SRel

      34611




      34611




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          5
          down vote



          accepted










          You can use relative coordinates with ++:



          documentclass[tikz,border=1.2345cm]standalone

          usetikzlibrarydecorations.pathreplacing

          begindocument

          begintikzpicture
          node (thisnode) at (5,10) A;% Random coordinates just to prove functionality
          draw (thisnode.north) -- ++ (90:3cm);
          draw (thisnode.north) -- ++ (50:2cm);
          % One with the decorations
          node (stoer) at (5,5) A;% Random coordinates just to prove functionality
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (90:3cm);
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (50:2cm);
          endtikzpicture

          enddocument



          enter image description here







          share|improve this answer




















          • Great thank you works perfectly :)
            – SRel
            Aug 21 at 13:02










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f446889%2ftikz-draw-path-starting-at-an-anchor-and-just-going-a-specific-distance-in-some%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          5
          down vote



          accepted










          You can use relative coordinates with ++:



          documentclass[tikz,border=1.2345cm]standalone

          usetikzlibrarydecorations.pathreplacing

          begindocument

          begintikzpicture
          node (thisnode) at (5,10) A;% Random coordinates just to prove functionality
          draw (thisnode.north) -- ++ (90:3cm);
          draw (thisnode.north) -- ++ (50:2cm);
          % One with the decorations
          node (stoer) at (5,5) A;% Random coordinates just to prove functionality
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (90:3cm);
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (50:2cm);
          endtikzpicture

          enddocument



          enter image description here







          share|improve this answer




















          • Great thank you works perfectly :)
            – SRel
            Aug 21 at 13:02














          up vote
          5
          down vote



          accepted










          You can use relative coordinates with ++:



          documentclass[tikz,border=1.2345cm]standalone

          usetikzlibrarydecorations.pathreplacing

          begindocument

          begintikzpicture
          node (thisnode) at (5,10) A;% Random coordinates just to prove functionality
          draw (thisnode.north) -- ++ (90:3cm);
          draw (thisnode.north) -- ++ (50:2cm);
          % One with the decorations
          node (stoer) at (5,5) A;% Random coordinates just to prove functionality
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (90:3cm);
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (50:2cm);
          endtikzpicture

          enddocument



          enter image description here







          share|improve this answer




















          • Great thank you works perfectly :)
            – SRel
            Aug 21 at 13:02












          up vote
          5
          down vote



          accepted







          up vote
          5
          down vote



          accepted






          You can use relative coordinates with ++:



          documentclass[tikz,border=1.2345cm]standalone

          usetikzlibrarydecorations.pathreplacing

          begindocument

          begintikzpicture
          node (thisnode) at (5,10) A;% Random coordinates just to prove functionality
          draw (thisnode.north) -- ++ (90:3cm);
          draw (thisnode.north) -- ++ (50:2cm);
          % One with the decorations
          node (stoer) at (5,5) A;% Random coordinates just to prove functionality
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (90:3cm);
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (50:2cm);
          endtikzpicture

          enddocument



          enter image description here







          share|improve this answer












          You can use relative coordinates with ++:



          documentclass[tikz,border=1.2345cm]standalone

          usetikzlibrarydecorations.pathreplacing

          begindocument

          begintikzpicture
          node (thisnode) at (5,10) A;% Random coordinates just to prove functionality
          draw (thisnode.north) -- ++ (90:3cm);
          draw (thisnode.north) -- ++ (50:2cm);
          % One with the decorations
          node (stoer) at (5,5) A;% Random coordinates just to prove functionality
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (90:3cm);
          draw [decorate,decoration=expanding waves, angle=65, segment length=8] (stoer.north) -- ++ (50:2cm);
          endtikzpicture

          enddocument



          enter image description here








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 20 at 23:51









          Phelype Oleinik

          16k33466




          16k33466











          • Great thank you works perfectly :)
            – SRel
            Aug 21 at 13:02
















          • Great thank you works perfectly :)
            – SRel
            Aug 21 at 13:02















          Great thank you works perfectly :)
          – SRel
          Aug 21 at 13:02




          Great thank you works perfectly :)
          – SRel
          Aug 21 at 13:02

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f446889%2ftikz-draw-path-starting-at-an-anchor-and-just-going-a-specific-distance-in-some%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery