Tikz: draw path starting at an anchor and just going a specific distance in some angle
Clash 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));
tikz-pgf paths decorations draw
add a comment |Â
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));
tikz-pgf paths decorations draw
add a comment |Â
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));
tikz-pgf paths decorations draw
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));
tikz-pgf paths decorations draw
asked Aug 20 at 23:47
SRel
34611
34611
add a comment |Â
add a comment |Â
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
Great thank you works perfectly :)
– SRel
Aug 21 at 13:02
add a comment |Â
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
Great thank you works perfectly :)
– SRel
Aug 21 at 13:02
add a comment |Â
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
Great thank you works perfectly :)
– SRel
Aug 21 at 13:02
add a comment |Â
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
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
answered Aug 20 at 23:51


Phelype Oleinik
16k33466
16k33466
Great thank you works perfectly :)
– SRel
Aug 21 at 13:02
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password