How to edit the following dashed line?
up vote
0
down vote
favorite
I need to edit this code so the red dashed line can end up at R4 not R3 as in the following picture .
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{positioning,calc,arrows.meta}
begin{document}
begin{tikzpicture}[bullet/.style={draw,circle,minimum width=3mm,inner
sep=0pt,
fill=cyan!50}]
node[bullet,label={[yshift=-2mm]below:$R_1$}] (R1){};
node[right=2cm of R1,bullet,label={[yshift=-2mm]below:$R_2$}] (R2){};
node[right=2cm of R2,yshift=6mm,bullet,label={[yshift=2mm]above:$R_3$}] (R3)
{};
node[right=2cm of R3,yshift=-6mm,bullet,label={[yshift=-2mm]below:$R_4$}]
(R4){};
node[right=2cm of R4,bullet,label={[yshift=-2mm]below:$R_5$}] (R5){};
foreach X [evaluate=X as Y using {int(X+1)}] in {1,...,4}
{draw[thick,-latex,cyan!50] (RX) -- (RY);}
draw[thick,red,{Circle}-latex,dashed] let p1=($(R2)-(R1)$), p2=($(R3)-
(R2)$),
n1={atan2(y1,x1)},n2={atan2(y2,x2)} in
([yshift=1mm]R1.north) to[out=n1,in=180,looseness=0.5]
([yshift=1mm]R2.north) to[out=0,in=n2-180,looseness=0.5]
([yshift=1mm,xshift=-2mm]R3.north);
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
add a comment |
up vote
0
down vote
favorite
I need to edit this code so the red dashed line can end up at R4 not R3 as in the following picture .
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{positioning,calc,arrows.meta}
begin{document}
begin{tikzpicture}[bullet/.style={draw,circle,minimum width=3mm,inner
sep=0pt,
fill=cyan!50}]
node[bullet,label={[yshift=-2mm]below:$R_1$}] (R1){};
node[right=2cm of R1,bullet,label={[yshift=-2mm]below:$R_2$}] (R2){};
node[right=2cm of R2,yshift=6mm,bullet,label={[yshift=2mm]above:$R_3$}] (R3)
{};
node[right=2cm of R3,yshift=-6mm,bullet,label={[yshift=-2mm]below:$R_4$}]
(R4){};
node[right=2cm of R4,bullet,label={[yshift=-2mm]below:$R_5$}] (R5){};
foreach X [evaluate=X as Y using {int(X+1)}] in {1,...,4}
{draw[thick,-latex,cyan!50] (RX) -- (RY);}
draw[thick,red,{Circle}-latex,dashed] let p1=($(R2)-(R1)$), p2=($(R3)-
(R2)$),
n1={atan2(y1,x1)},n2={atan2(y2,x2)} in
([yshift=1mm]R1.north) to[out=n1,in=180,looseness=0.5]
([yshift=1mm]R2.north) to[out=0,in=n2-180,looseness=0.5]
([yshift=1mm,xshift=-2mm]R3.north);
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I need to edit this code so the red dashed line can end up at R4 not R3 as in the following picture .
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{positioning,calc,arrows.meta}
begin{document}
begin{tikzpicture}[bullet/.style={draw,circle,minimum width=3mm,inner
sep=0pt,
fill=cyan!50}]
node[bullet,label={[yshift=-2mm]below:$R_1$}] (R1){};
node[right=2cm of R1,bullet,label={[yshift=-2mm]below:$R_2$}] (R2){};
node[right=2cm of R2,yshift=6mm,bullet,label={[yshift=2mm]above:$R_3$}] (R3)
{};
node[right=2cm of R3,yshift=-6mm,bullet,label={[yshift=-2mm]below:$R_4$}]
(R4){};
node[right=2cm of R4,bullet,label={[yshift=-2mm]below:$R_5$}] (R5){};
foreach X [evaluate=X as Y using {int(X+1)}] in {1,...,4}
{draw[thick,-latex,cyan!50] (RX) -- (RY);}
draw[thick,red,{Circle}-latex,dashed] let p1=($(R2)-(R1)$), p2=($(R3)-
(R2)$),
n1={atan2(y1,x1)},n2={atan2(y2,x2)} in
([yshift=1mm]R1.north) to[out=n1,in=180,looseness=0.5]
([yshift=1mm]R2.north) to[out=0,in=n2-180,looseness=0.5]
([yshift=1mm,xshift=-2mm]R3.north);
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
I need to edit this code so the red dashed line can end up at R4 not R3 as in the following picture .
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{positioning,calc,arrows.meta}
begin{document}
begin{tikzpicture}[bullet/.style={draw,circle,minimum width=3mm,inner
sep=0pt,
fill=cyan!50}]
node[bullet,label={[yshift=-2mm]below:$R_1$}] (R1){};
node[right=2cm of R1,bullet,label={[yshift=-2mm]below:$R_2$}] (R2){};
node[right=2cm of R2,yshift=6mm,bullet,label={[yshift=2mm]above:$R_3$}] (R3)
{};
node[right=2cm of R3,yshift=-6mm,bullet,label={[yshift=-2mm]below:$R_4$}]
(R4){};
node[right=2cm of R4,bullet,label={[yshift=-2mm]below:$R_5$}] (R5){};
foreach X [evaluate=X as Y using {int(X+1)}] in {1,...,4}
{draw[thick,-latex,cyan!50] (RX) -- (RY);}
draw[thick,red,{Circle}-latex,dashed] let p1=($(R2)-(R1)$), p2=($(R3)-
(R2)$),
n1={atan2(y1,x1)},n2={atan2(y2,x2)} in
([yshift=1mm]R1.north) to[out=n1,in=180,looseness=0.5]
([yshift=1mm]R2.north) to[out=0,in=n2-180,looseness=0.5]
([yshift=1mm,xshift=-2mm]R3.north);
end{tikzpicture}
end{document}
tikz-pgf tikz-arrows
tikz-pgf tikz-arrows
asked 3 mins ago
Mohamed
724
724
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463263%2fhow-to-edit-the-following-dashed-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown