How to plot diagram like a “#” in tikz
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I don't know how to plot diagram like a "#", anyone could give some tips?
Thank you!
tikz-arrows plot
New contributor
add a comment |
up vote
1
down vote
favorite
I don't know how to plot diagram like a "#", anyone could give some tips?
Thank you!
tikz-arrows plot
New contributor
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
I try the straight line throughtikzcd
, if I succeed I will paste my code.
– Ben
4 hours ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I don't know how to plot diagram like a "#", anyone could give some tips?
Thank you!
tikz-arrows plot
New contributor
I don't know how to plot diagram like a "#", anyone could give some tips?
Thank you!
tikz-arrows plot
tikz-arrows plot
New contributor
New contributor
New contributor
asked 4 hours ago
Ben
685
685
New contributor
New contributor
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
I try the straight line throughtikzcd
, if I succeed I will paste my code.
– Ben
4 hours ago
add a comment |
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
I try the straight line throughtikzcd
, if I succeed I will paste my code.
– Ben
4 hours ago
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
I try the straight line through
tikzcd
, if I succeed I will paste my code.– Ben
4 hours ago
I try the straight line through
tikzcd
, if I succeed I will paste my code.– Ben
4 hours ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
7
down vote
accepted
Welcome to TeX.SE! Can one draw such a graph? Sure. Are people here willing to do that for you? Well this will depend on their mood and also how new you are. Believe me, it is much more fun to do it on your own. Note also that there are 3d packages and nonlinear transformations etc. which can do a much better job if you have a concrete scenario and want more than just a cartoon.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections
defldarray"i","i+1"
defluarray"k","k+mu","k+1"
begindocument
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X [count=XX starting from 0] in 1,2,3
foreach Y [count=YY starting from 0] in 1,2
pgfmathsetmacroldldarray[YY]
pgfmathsetmacroluluarray[XX]
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ld^lu$];
endtikzpicture
enddocument
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all theifnum
stuff ...
– marmot
3 hours ago
add a comment |
up vote
6
down vote
Follow marmot's sample,
Notice usetikzlibraryintersections
and in the following code, define $Y= 1,2$ is the Horizontal line, and $X=1,2,3$ is the vert...
begincenter
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X in 1,2,3
foreach Y in 1,2
ifnumY=1
deflyi
else
deflyi+1
fi
ifnumX=1
defldk
else
ifnumX=2
defldk+mu
else
defldk+1
fi
fi
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ly^ld$];
endtikzpicture
endcenter
New contributor
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
Welcome to TeX.SE! Can one draw such a graph? Sure. Are people here willing to do that for you? Well this will depend on their mood and also how new you are. Believe me, it is much more fun to do it on your own. Note also that there are 3d packages and nonlinear transformations etc. which can do a much better job if you have a concrete scenario and want more than just a cartoon.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections
defldarray"i","i+1"
defluarray"k","k+mu","k+1"
begindocument
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X [count=XX starting from 0] in 1,2,3
foreach Y [count=YY starting from 0] in 1,2
pgfmathsetmacroldldarray[YY]
pgfmathsetmacroluluarray[XX]
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ld^lu$];
endtikzpicture
enddocument
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all theifnum
stuff ...
– marmot
3 hours ago
add a comment |
up vote
7
down vote
accepted
Welcome to TeX.SE! Can one draw such a graph? Sure. Are people here willing to do that for you? Well this will depend on their mood and also how new you are. Believe me, it is much more fun to do it on your own. Note also that there are 3d packages and nonlinear transformations etc. which can do a much better job if you have a concrete scenario and want more than just a cartoon.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections
defldarray"i","i+1"
defluarray"k","k+mu","k+1"
begindocument
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X [count=XX starting from 0] in 1,2,3
foreach Y [count=YY starting from 0] in 1,2
pgfmathsetmacroldldarray[YY]
pgfmathsetmacroluluarray[XX]
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ld^lu$];
endtikzpicture
enddocument
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all theifnum
stuff ...
– marmot
3 hours ago
add a comment |
up vote
7
down vote
accepted
up vote
7
down vote
accepted
Welcome to TeX.SE! Can one draw such a graph? Sure. Are people here willing to do that for you? Well this will depend on their mood and also how new you are. Believe me, it is much more fun to do it on your own. Note also that there are 3d packages and nonlinear transformations etc. which can do a much better job if you have a concrete scenario and want more than just a cartoon.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections
defldarray"i","i+1"
defluarray"k","k+mu","k+1"
begindocument
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X [count=XX starting from 0] in 1,2,3
foreach Y [count=YY starting from 0] in 1,2
pgfmathsetmacroldldarray[YY]
pgfmathsetmacroluluarray[XX]
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ld^lu$];
endtikzpicture
enddocument
Welcome to TeX.SE! Can one draw such a graph? Sure. Are people here willing to do that for you? Well this will depend on their mood and also how new you are. Believe me, it is much more fun to do it on your own. Note also that there are 3d packages and nonlinear transformations etc. which can do a much better job if you have a concrete scenario and want more than just a cartoon.
documentclass[tikz,border=3.14mm]standalone
usetikzlibraryintersections
defldarray"i","i+1"
defluarray"k","k+mu","k+1"
begindocument
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X [count=XX starting from 0] in 1,2,3
foreach Y [count=YY starting from 0] in 1,2
pgfmathsetmacroldldarray[YY]
pgfmathsetmacroluluarray[XX]
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ld^lu$];
endtikzpicture
enddocument
edited 2 hours ago
answered 4 hours ago
marmot
73.7k479154
73.7k479154
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all theifnum
stuff ...
– marmot
3 hours ago
add a comment |
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all theifnum
stuff ...
– marmot
3 hours ago
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
thank you very much. Follow your sample, i solve the problem.
– Ben
4 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all the
ifnum
stuff ...– marmot
3 hours ago
@Ben You're welcome. I actually simplified the code quite a bit by getting rid of all the
ifnum
stuff ...– marmot
3 hours ago
add a comment |
up vote
6
down vote
Follow marmot's sample,
Notice usetikzlibraryintersections
and in the following code, define $Y= 1,2$ is the Horizontal line, and $X=1,2,3$ is the vert...
begincenter
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X in 1,2,3
foreach Y in 1,2
ifnumY=1
deflyi
else
deflyi+1
fi
ifnumX=1
defldk
else
ifnumX=2
defldk+mu
else
defldk+1
fi
fi
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ly^ld$];
endtikzpicture
endcenter
New contributor
add a comment |
up vote
6
down vote
Follow marmot's sample,
Notice usetikzlibraryintersections
and in the following code, define $Y= 1,2$ is the Horizontal line, and $X=1,2,3$ is the vert...
begincenter
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X in 1,2,3
foreach Y in 1,2
ifnumY=1
deflyi
else
deflyi+1
fi
ifnumX=1
defldk
else
ifnumX=2
defldk+mu
else
defldk+1
fi
fi
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ly^ld$];
endtikzpicture
endcenter
New contributor
add a comment |
up vote
6
down vote
up vote
6
down vote
Follow marmot's sample,
Notice usetikzlibraryintersections
and in the following code, define $Y= 1,2$ is the Horizontal line, and $X=1,2,3$ is the vert...
begincenter
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X in 1,2,3
foreach Y in 1,2
ifnumY=1
deflyi
else
deflyi+1
fi
ifnumX=1
defldk
else
ifnumX=2
defldk+mu
else
defldk+1
fi
fi
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ly^ld$];
endtikzpicture
endcenter
New contributor
Follow marmot's sample,
Notice usetikzlibraryintersections
and in the following code, define $Y= 1,2$ is the Horizontal line, and $X=1,2,3$ is the vert...
begincenter
begintikzpicture
foreach X in 1,2,3
draw[name path global=hor-X-0] (0.1*X,2*X) to[bend left=12] ++ (5,1);
foreach X in 1,2
draw[name path global=vert-X-0] (2*X-0.5,1+0.1*X) to[bend left=15] ++ (0.3,7);
foreach X in 1,2,3
foreach Y in 1,2
ifnumY=1
deflyi
else
deflyi+1
fi
ifnumX=1
defldk
else
ifnumX=2
defldk+mu
else
defldk+1
fi
fi
path[name intersections=of=hor-X-0 and vert-Y-0,by=pXY] (pXY)
node[circle,fill,inner sep=2pt,label=below right:$g_ly^ld$];
endtikzpicture
endcenter
New contributor
New contributor
answered 4 hours ago
Ben
685
685
New contributor
New contributor
add a comment |
add a comment |
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
Ben is a new contributor. Be nice, and check out our Code of Conduct.
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%2f459404%2fhow-to-plot-diagram-like-a-in-tikz%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
Welcome to TeX.SX! Are those lines supposed to be bent or straight? Also, what have you tried so far?
– siracusa
4 hours ago
I try the straight line through
tikzcd
, if I succeed I will paste my code.– Ben
4 hours ago