Drawing ramified coverings with tikzRotate a node but not its content: the case of the ellipse decorationNumerical conditional within tikz keys?How to draw up this hierarchical diagram?(Or similar way)TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to place nodes in an absolute coordinate system in tikzHow to draw a Block Diagram like thisTikZ picture not centered in figure fbox
What does chmod -u do?
Yosemite Fire Rings - What to Expect?
Count the occurrence of each unique word in the file
Is this toilet slogan correct usage of the English language?
Multiplicative persistence
lightning-datatable row number error
is this legal and f i dont come up with extra money is the deal off
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Melting point of aspirin, contradicting sources
Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?
What does routing an IP address mean?
When were female captains banned from Starfleet?
On a tidally locked planet, would time be quantized?
What should you do when eye contact makes your subordinate uncomfortable?
Is it safe to use olive oil to clean the ear wax?
copy and scale one figure (wheel)
Can Legal Documents Be Siged In Non-Standard Pen Colors?
How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?
Added a new user on Ubuntu, set password not working?
L1 and Ln cache: when are they written?
The IT department bottlenecks progress. How should I handle this?
Start making guitar arrangements
What was this official D&D 3.5e Lovecraft-flavored rulebook?
C++ debug/print custom type with GDB : the case of nlohmann json library
Drawing ramified coverings with tikz
Rotate a node but not its content: the case of the ellipse decorationNumerical conditional within tikz keys?How to draw up this hierarchical diagram?(Or similar way)TikZ: Drawing an arc from an intersection to an intersectionDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themProblems with nested TikZpicturesHow to place nodes in an absolute coordinate system in tikzHow to draw a Block Diagram like thisTikZ picture not centered in figure fbox
I want to draw a diagram similar to this one:
For that I started with the following code:
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,0) -- (7,0);
draw[thick] (1,2) -- (7,2);
draw[thick] (1,2.5) -- (7,2.5);
draw[thick] (1,1.5) -- (7,1.5);
endtikzpicture
The only thing that I don't know how to do is the curvy parts. I would appreciate some indication.
tikz-pgf
add a comment |
I want to draw a diagram similar to this one:
For that I started with the following code:
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,0) -- (7,0);
draw[thick] (1,2) -- (7,2);
draw[thick] (1,2.5) -- (7,2.5);
draw[thick] (1,1.5) -- (7,1.5);
endtikzpicture
The only thing that I don't know how to do is the curvy parts. I would appreciate some indication.
tikz-pgf
add a comment |
I want to draw a diagram similar to this one:
For that I started with the following code:
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,0) -- (7,0);
draw[thick] (1,2) -- (7,2);
draw[thick] (1,2.5) -- (7,2.5);
draw[thick] (1,1.5) -- (7,1.5);
endtikzpicture
The only thing that I don't know how to do is the curvy parts. I would appreciate some indication.
tikz-pgf
I want to draw a diagram similar to this one:
For that I started with the following code:
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,0) -- (7,0);
draw[thick] (1,2) -- (7,2);
draw[thick] (1,2.5) -- (7,2.5);
draw[thick] (1,1.5) -- (7,1.5);
endtikzpicture
The only thing that I don't know how to do is the curvy parts. I would appreciate some indication.
tikz-pgf
tikz-pgf
edited 2 hours ago
Cragfelt
2,96531028
2,96531028
asked 3 hours ago
Gabriel RibeiroGabriel Ribeiro
25918
25918
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The following is a pretty manual way to do this. I only did it for the first two lines, I hope you can apply it to the other occurrences. It uses the in
and out
keys of the to
path construction:
documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,2.5) -- (7,2.5) coordinate(a);
draw[thick] (1,2) -- (7,2) coordinate(b);
draw[thick] (1,1.5) -- (7,1.5) coordinate(c);
draw[thick] (1,0) -- (7,0) coordinate(d);
draw[thick]
(a) ++(.25,-.25) coordinate(ab) to[out=180,in=0] (a)
(ab) to[out=180,in=0] (b)
(ab) to[out=0,in=180] ++(.25,.25)
(ab) to[out=0,in=180] ++(.25,-.25)
;
filldraw
(ab) circle(.05)
;
endtikzpicture
enddocument
add a comment |
This uses the same in and out
trick as Skillmon and puts it into a style dip
, which takes as arguments the horizontal position and the depth, where the sign decides whether the dip is a dip (minus) or a bump (plus).
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypositioning
newcounterdip
begindocument
begintikzpicture[dip/.style args=#1/#2/utils/exec=stepcounterdip,
insert path=-aux1)
]
beginscope[thick,local bounding box=dips]
draw (1,2.5) [dip=5.5cm/-2.5mm]-- (7,2.5);
fill (dip-1) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,2) [dip/.list=2.5cm/-2.5mm,5.5cm/2.5mm] -- (7,2);
fill (dip-2) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,1.5) [dip/.list=2.5cm/2.5mm,5.5cm/-5mm] -- (7,1.5);
fill (dip-5) circle[radius=2pt] node[above right=0pt and 5pt]$b=2$;
draw (1,1) -- (7,1);
draw (1,0.5) [dip=5.5cm/5mm] -- (7,0.5);
endscope
path (dips.north west) node[anchor=north east] (X) $X$;
path (dips.south west) node[anchor=south east] (Y) $Y$;
draw[<-] (Y) -- (X) node[left, midway] $f$;
endtikzpicture
enddocument
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f481125%2fdrawing-ramified-coverings-with-tikz%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The following is a pretty manual way to do this. I only did it for the first two lines, I hope you can apply it to the other occurrences. It uses the in
and out
keys of the to
path construction:
documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,2.5) -- (7,2.5) coordinate(a);
draw[thick] (1,2) -- (7,2) coordinate(b);
draw[thick] (1,1.5) -- (7,1.5) coordinate(c);
draw[thick] (1,0) -- (7,0) coordinate(d);
draw[thick]
(a) ++(.25,-.25) coordinate(ab) to[out=180,in=0] (a)
(ab) to[out=180,in=0] (b)
(ab) to[out=0,in=180] ++(.25,.25)
(ab) to[out=0,in=180] ++(.25,-.25)
;
filldraw
(ab) circle(.05)
;
endtikzpicture
enddocument
add a comment |
The following is a pretty manual way to do this. I only did it for the first two lines, I hope you can apply it to the other occurrences. It uses the in
and out
keys of the to
path construction:
documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,2.5) -- (7,2.5) coordinate(a);
draw[thick] (1,2) -- (7,2) coordinate(b);
draw[thick] (1,1.5) -- (7,1.5) coordinate(c);
draw[thick] (1,0) -- (7,0) coordinate(d);
draw[thick]
(a) ++(.25,-.25) coordinate(ab) to[out=180,in=0] (a)
(ab) to[out=180,in=0] (b)
(ab) to[out=0,in=180] ++(.25,.25)
(ab) to[out=0,in=180] ++(.25,-.25)
;
filldraw
(ab) circle(.05)
;
endtikzpicture
enddocument
add a comment |
The following is a pretty manual way to do this. I only did it for the first two lines, I hope you can apply it to the other occurrences. It uses the in
and out
keys of the to
path construction:
documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,2.5) -- (7,2.5) coordinate(a);
draw[thick] (1,2) -- (7,2) coordinate(b);
draw[thick] (1,1.5) -- (7,1.5) coordinate(c);
draw[thick] (1,0) -- (7,0) coordinate(d);
draw[thick]
(a) ++(.25,-.25) coordinate(ab) to[out=180,in=0] (a)
(ab) to[out=180,in=0] (b)
(ab) to[out=0,in=180] ++(.25,.25)
(ab) to[out=0,in=180] ++(.25,-.25)
;
filldraw
(ab) circle(.05)
;
endtikzpicture
enddocument
The following is a pretty manual way to do this. I only did it for the first two lines, I hope you can apply it to the other occurrences. It uses the in
and out
keys of the to
path construction:
documentclass[tikz]standalone
begindocument
begintikzpicture
draw (0,0) node $Y$;
draw (0,2) node $X$;
draw[<-] (0,0.35) -- (0,1.65) node[left, midway] $f$;
draw[thick] (1,2.5) -- (7,2.5) coordinate(a);
draw[thick] (1,2) -- (7,2) coordinate(b);
draw[thick] (1,1.5) -- (7,1.5) coordinate(c);
draw[thick] (1,0) -- (7,0) coordinate(d);
draw[thick]
(a) ++(.25,-.25) coordinate(ab) to[out=180,in=0] (a)
(ab) to[out=180,in=0] (b)
(ab) to[out=0,in=180] ++(.25,.25)
(ab) to[out=0,in=180] ++(.25,-.25)
;
filldraw
(ab) circle(.05)
;
endtikzpicture
enddocument
edited 1 hour ago
answered 1 hour ago
SkillmonSkillmon
23.6k12247
23.6k12247
add a comment |
add a comment |
This uses the same in and out
trick as Skillmon and puts it into a style dip
, which takes as arguments the horizontal position and the depth, where the sign decides whether the dip is a dip (minus) or a bump (plus).
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypositioning
newcounterdip
begindocument
begintikzpicture[dip/.style args=#1/#2/utils/exec=stepcounterdip,
insert path=-aux1)
]
beginscope[thick,local bounding box=dips]
draw (1,2.5) [dip=5.5cm/-2.5mm]-- (7,2.5);
fill (dip-1) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,2) [dip/.list=2.5cm/-2.5mm,5.5cm/2.5mm] -- (7,2);
fill (dip-2) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,1.5) [dip/.list=2.5cm/2.5mm,5.5cm/-5mm] -- (7,1.5);
fill (dip-5) circle[radius=2pt] node[above right=0pt and 5pt]$b=2$;
draw (1,1) -- (7,1);
draw (1,0.5) [dip=5.5cm/5mm] -- (7,0.5);
endscope
path (dips.north west) node[anchor=north east] (X) $X$;
path (dips.south west) node[anchor=south east] (Y) $Y$;
draw[<-] (Y) -- (X) node[left, midway] $f$;
endtikzpicture
enddocument
add a comment |
This uses the same in and out
trick as Skillmon and puts it into a style dip
, which takes as arguments the horizontal position and the depth, where the sign decides whether the dip is a dip (minus) or a bump (plus).
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypositioning
newcounterdip
begindocument
begintikzpicture[dip/.style args=#1/#2/utils/exec=stepcounterdip,
insert path=-aux1)
]
beginscope[thick,local bounding box=dips]
draw (1,2.5) [dip=5.5cm/-2.5mm]-- (7,2.5);
fill (dip-1) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,2) [dip/.list=2.5cm/-2.5mm,5.5cm/2.5mm] -- (7,2);
fill (dip-2) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,1.5) [dip/.list=2.5cm/2.5mm,5.5cm/-5mm] -- (7,1.5);
fill (dip-5) circle[radius=2pt] node[above right=0pt and 5pt]$b=2$;
draw (1,1) -- (7,1);
draw (1,0.5) [dip=5.5cm/5mm] -- (7,0.5);
endscope
path (dips.north west) node[anchor=north east] (X) $X$;
path (dips.south west) node[anchor=south east] (Y) $Y$;
draw[<-] (Y) -- (X) node[left, midway] $f$;
endtikzpicture
enddocument
add a comment |
This uses the same in and out
trick as Skillmon and puts it into a style dip
, which takes as arguments the horizontal position and the depth, where the sign decides whether the dip is a dip (minus) or a bump (plus).
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypositioning
newcounterdip
begindocument
begintikzpicture[dip/.style args=#1/#2/utils/exec=stepcounterdip,
insert path=-aux1)
]
beginscope[thick,local bounding box=dips]
draw (1,2.5) [dip=5.5cm/-2.5mm]-- (7,2.5);
fill (dip-1) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,2) [dip/.list=2.5cm/-2.5mm,5.5cm/2.5mm] -- (7,2);
fill (dip-2) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,1.5) [dip/.list=2.5cm/2.5mm,5.5cm/-5mm] -- (7,1.5);
fill (dip-5) circle[radius=2pt] node[above right=0pt and 5pt]$b=2$;
draw (1,1) -- (7,1);
draw (1,0.5) [dip=5.5cm/5mm] -- (7,0.5);
endscope
path (dips.north west) node[anchor=north east] (X) $X$;
path (dips.south west) node[anchor=south east] (Y) $Y$;
draw[<-] (Y) -- (X) node[left, midway] $f$;
endtikzpicture
enddocument
This uses the same in and out
trick as Skillmon and puts it into a style dip
, which takes as arguments the horizontal position and the depth, where the sign decides whether the dip is a dip (minus) or a bump (plus).
documentclass[tikz,border=3.14mm]standalone
usetikzlibrarypositioning
newcounterdip
begindocument
begintikzpicture[dip/.style args=#1/#2/utils/exec=stepcounterdip,
insert path=-aux1)
]
beginscope[thick,local bounding box=dips]
draw (1,2.5) [dip=5.5cm/-2.5mm]-- (7,2.5);
fill (dip-1) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,2) [dip/.list=2.5cm/-2.5mm,5.5cm/2.5mm] -- (7,2);
fill (dip-2) circle[radius=2pt] node[right=3pt]$b=1$;
draw (1,1.5) [dip/.list=2.5cm/2.5mm,5.5cm/-5mm] -- (7,1.5);
fill (dip-5) circle[radius=2pt] node[above right=0pt and 5pt]$b=2$;
draw (1,1) -- (7,1);
draw (1,0.5) [dip=5.5cm/5mm] -- (7,0.5);
endscope
path (dips.north west) node[anchor=north east] (X) $X$;
path (dips.south west) node[anchor=south east] (Y) $Y$;
draw[<-] (Y) -- (X) node[left, midway] $f$;
endtikzpicture
enddocument
answered 18 mins ago
marmotmarmot
111k5138260
111k5138260
add a comment |
add a comment |
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.
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%2f481125%2fdrawing-ramified-coverings-with-tikz%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