Connecting top and bottom of adjacent circlesCan PSTricks or others draw the 4 common tangent lines of 2...
How to mitigate "bandwagon attacking" from players?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
Is Draco canonically good-looking?
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Which aircraft had such a luxurious-looking navigator's station?
How to acknowledge an embarrassing job interview, now that I work directly with the interviewer?
Can the Count of Monte Cristo's calculation of poison dosage be explained?
What can I substitute for soda pop in a sweet pork recipe?
How to push a box with physics engine by another object?
How to satisfy a player character's curiosity about another player character?
What happens if a wizard reaches level 20 but has no 3rd-level spells that they can use with the Signature Spells feature?
Can chords be played on the flute?
What is better: yes / no radio, or simple checkbox?
Can a hotel cancel a confirmed reservation?
Why is commutativity optional in multiplication for rings?
Finding ratio of the area of triangles
Meaning of すきっとした
Why zero tolerance on nudity in space?
Word to be used for "standing with your toes pointing out"
Finding the number of integers that are a square and a cube at the same time
Dilemma of explaining to interviewer that he is the reason for declining second interview
Is my plan for fixing my water heater leak bad?
How Should I Define/Declare String Constants
Incompressible fluid definition
Connecting top and bottom of adjacent circles
Can PSTricks or others draw the 4 common tangent lines of 2 “disjoint” circles without having to do extra calculations?The belt for chain of gearsTikz: The common tangent and the shaded regionBetter solution to display the Distributive PropertyUML StatediagramHow to define the default vertical distance between nodes?Drawing multiple iterations of cellular automatons inline, possibly with TikZChanging Size of Arrows, Labels, Loops in Diagrams and Directed GraphsAdding extra nodes at anchors of rectangular node custom shape in tikz?Input/Output Nodes - Specification and Description LanguagePlacing a rectangular node in tikz by specifying two opposing cornersPretty circles connecting nodesMake graph where nodes and connecting edges are circles
I have the following code:
begin {tikzpicture}[-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]{};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}]{};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
end{tikzpicture} newline newline
This produces:
I'd like to draw a lines as shown below:
tikz-pgf
New contributor
add a comment |
I have the following code:
begin {tikzpicture}[-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]{};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}]{};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
end{tikzpicture} newline newline
This produces:
I'd like to draw a lines as shown below:
tikz-pgf
New contributor
3
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search forTikz Spy
on this site.
– Thruston
12 hours ago
add a comment |
I have the following code:
begin {tikzpicture}[-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]{};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}]{};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
end{tikzpicture} newline newline
This produces:
I'd like to draw a lines as shown below:
tikz-pgf
New contributor
I have the following code:
begin {tikzpicture}[-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]{};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}]{};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
end{tikzpicture} newline newline
This produces:
I'd like to draw a lines as shown below:
tikz-pgf
tikz-pgf
New contributor
New contributor
New contributor
asked 12 hours ago
StuartStuart
1234
1234
New contributor
New contributor
3
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search forTikz Spy
on this site.
– Thruston
12 hours ago
add a comment |
3
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search forTikz Spy
on this site.
– Thruston
12 hours ago
3
3
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search for
Tikz Spy
on this site.– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search for
Tikz Spy
on this site.– Thruston
12 hours ago
add a comment |
2 Answers
2
active
oldest
votes
This is a possible solution, but I don't think it is the best way.
Add names for the circles.
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{positioning,fit}
begin{document}
begin {tikzpicture}[,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}] (circle1) {};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circle2) {};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path[-latex] (b1) edge [bend right=0] node[] {} (a2);
draw[thick,red] (circle1.north)--(circle2.north);
draw[thick,red] (circle1.south)--(circle2.south);
end{tikzpicture}
end{document}
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the twonorth
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.
– JouleV
12 hours ago
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
add a comment |
AFAIK the first way to draw a tangent at two circles has been proposed in this nice answer. However, can't refrain from using this one.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc,positioning,fit}
begin{document}
begin{tikzpicture}[tangent of circles/.style args={%
at #1 and #2 with radii #3 and #4}{insert path={%
let p1=($(#2)-(#1)$),n1={atan2(y1,x1)},n2={veclen(y1,x1)*1pt/1cm},
n3={atan2(#4-#3,n2)}
in ($(#1)+(n3+n1+90:#3)$) -- ($(#2)+(n3+n1+90:#4)$)}},-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]
(circ1){};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circ2){};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
draw[red,-,tangent of circles={at circ1.center and circ2.center with radii 2
and 1.5}];
draw[red,-,tangent of circles={at circ2.center and circ1.center with radii
1.5 and 2}];
end{tikzpicture}
end{document}
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
});
}
});
Stuart 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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477574%2fconnecting-top-and-bottom-of-adjacent-circles%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
This is a possible solution, but I don't think it is the best way.
Add names for the circles.
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{positioning,fit}
begin{document}
begin {tikzpicture}[,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}] (circle1) {};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circle2) {};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path[-latex] (b1) edge [bend right=0] node[] {} (a2);
draw[thick,red] (circle1.north)--(circle2.north);
draw[thick,red] (circle1.south)--(circle2.south);
end{tikzpicture}
end{document}
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the twonorth
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.
– JouleV
12 hours ago
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
add a comment |
This is a possible solution, but I don't think it is the best way.
Add names for the circles.
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{positioning,fit}
begin{document}
begin {tikzpicture}[,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}] (circle1) {};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circle2) {};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path[-latex] (b1) edge [bend right=0] node[] {} (a2);
draw[thick,red] (circle1.north)--(circle2.north);
draw[thick,red] (circle1.south)--(circle2.south);
end{tikzpicture}
end{document}
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the twonorth
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.
– JouleV
12 hours ago
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
add a comment |
This is a possible solution, but I don't think it is the best way.
Add names for the circles.
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{positioning,fit}
begin{document}
begin {tikzpicture}[,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}] (circle1) {};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circle2) {};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path[-latex] (b1) edge [bend right=0] node[] {} (a2);
draw[thick,red] (circle1.north)--(circle2.north);
draw[thick,red] (circle1.south)--(circle2.south);
end{tikzpicture}
end{document}
This is a possible solution, but I don't think it is the best way.
Add names for the circles.
documentclass[tikz,margin=3mm]{standalone}
usetikzlibrary{positioning,fit}
begin{document}
begin {tikzpicture}[,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}] (circle1) {};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circle2) {};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path[-latex] (b1) edge [bend right=0] node[] {} (a2);
draw[thick,red] (circle1.north)--(circle2.north);
draw[thick,red] (circle1.south)--(circle2.south);
end{tikzpicture}
end{document}
answered 12 hours ago
JouleVJouleV
4,6761939
4,6761939
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the twonorth
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.
– JouleV
12 hours ago
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
add a comment |
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the twonorth
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.
– JouleV
12 hours ago
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
2
2
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
I think the OP is looking for tangents on these circles and not to connect their north points... if for example the right circle was smaller this solution would not give a nice result.
– koleygr
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the two
north
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.– JouleV
12 hours ago
@koleygr Indeed from the attached figure we can't say if the OP wants to join the two
north
s or have a tangent line. I thought of that too, and that is why I said "but I don't think it is the best way". If the OP explains his question further, I will be very glad to delete my answer.– JouleV
12 hours ago
2
2
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
This is perfect. I just want lines to show that circle on the right is a subset of the circle on the left. Thank you! Will accept asnwer in 2mins when it lets me.
– Stuart
12 hours ago
1
1
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
Wow... I was almost ready to insist that even without a clear question about these tangents it still seems a clear expectation to me... Nice guess (+1)
– koleygr
12 hours ago
add a comment |
AFAIK the first way to draw a tangent at two circles has been proposed in this nice answer. However, can't refrain from using this one.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc,positioning,fit}
begin{document}
begin{tikzpicture}[tangent of circles/.style args={%
at #1 and #2 with radii #3 and #4}{insert path={%
let p1=($(#2)-(#1)$),n1={atan2(y1,x1)},n2={veclen(y1,x1)*1pt/1cm},
n3={atan2(#4-#3,n2)}
in ($(#1)+(n3+n1+90:#3)$) -- ($(#2)+(n3+n1+90:#4)$)}},-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]
(circ1){};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circ2){};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
draw[red,-,tangent of circles={at circ1.center and circ2.center with radii 2
and 1.5}];
draw[red,-,tangent of circles={at circ2.center and circ1.center with radii
1.5 and 2}];
end{tikzpicture}
end{document}
add a comment |
AFAIK the first way to draw a tangent at two circles has been proposed in this nice answer. However, can't refrain from using this one.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc,positioning,fit}
begin{document}
begin{tikzpicture}[tangent of circles/.style args={%
at #1 and #2 with radii #3 and #4}{insert path={%
let p1=($(#2)-(#1)$),n1={atan2(y1,x1)},n2={veclen(y1,x1)*1pt/1cm},
n3={atan2(#4-#3,n2)}
in ($(#1)+(n3+n1+90:#3)$) -- ($(#2)+(n3+n1+90:#4)$)}},-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]
(circ1){};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circ2){};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
draw[red,-,tangent of circles={at circ1.center and circ2.center with radii 2
and 1.5}];
draw[red,-,tangent of circles={at circ2.center and circ1.center with radii
1.5 and 2}];
end{tikzpicture}
end{document}
add a comment |
AFAIK the first way to draw a tangent at two circles has been proposed in this nice answer. However, can't refrain from using this one.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc,positioning,fit}
begin{document}
begin{tikzpicture}[tangent of circles/.style args={%
at #1 and #2 with radii #3 and #4}{insert path={%
let p1=($(#2)-(#1)$),n1={atan2(y1,x1)},n2={veclen(y1,x1)*1pt/1cm},
n3={atan2(#4-#3,n2)}
in ($(#1)+(n3+n1+90:#3)$) -- ($(#2)+(n3+n1+90:#4)$)}},-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]
(circ1){};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circ2){};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
draw[red,-,tangent of circles={at circ1.center and circ2.center with radii 2
and 1.5}];
draw[red,-,tangent of circles={at circ2.center and circ1.center with radii
1.5 and 2}];
end{tikzpicture}
end{document}
AFAIK the first way to draw a tangent at two circles has been proposed in this nice answer. However, can't refrain from using this one.
documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{calc,positioning,fit}
begin{document}
begin{tikzpicture}[tangent of circles/.style args={%
at #1 and #2 with radii #3 and #4}{insert path={%
let p1=($(#2)-(#1)$),n1={atan2(y1,x1)},n2={veclen(y1,x1)*1pt/1cm},
n3={atan2(#4-#3,n2)}
in ($(#1)+(n3+n1+90:#3)$) -- ($(#2)+(n3+n1+90:#4)$)}},-latex ,auto ,node distance =0.8cm and 0.8cm ,on grid,
thin , state/.style ={ circle ,top color = black, bottom color = black,
draw,black , text=black, minimum width =0.01 cm}]
node[state] (a1) {};
node[state] (b1) [below =of a1]{};
node[state] (c1) [right =of a1]{};
node[state] (d1) [below =of c1]{};
node[shape=circle, draw=black, minimum size = 4cm, fit={(a1)(d1)}]
(circ1){};
node[state] (a2) [right=7cm of a1] {};
node[state] (b2) [right =of a2] {};
node[state] (c2) [below =of a2] {};
node[state] (d2) [right =of c2] {};
node[state] (d3) [above =3cm of d2] {};
node[state] (d4) [right =2cm of d2] {};
node[state] (d5) [below =2cm of d2] {};
node[state] (d6) [above = of d4] {};
node[state] (d6) [above = of d6] {};
node[shape=circle,
draw=black,
minimum size=3cm,
fit={(a2)(d2)}] (circ2){};
node[shape=circle, draw=black, fit={(d2)(d3)(d4)(d5)}]{};
path (b1) edge [bend right=0] node[] {} (a2);
draw[red,-,tangent of circles={at circ1.center and circ2.center with radii 2
and 1.5}];
draw[red,-,tangent of circles={at circ2.center and circ1.center with radii
1.5 and 2}];
end{tikzpicture}
end{document}
answered 12 hours ago
marmotmarmot
105k4126241
105k4126241
add a comment |
add a comment |
Stuart is a new contributor. Be nice, and check out our Code of Conduct.
Stuart is a new contributor. Be nice, and check out our Code of Conduct.
Stuart is a new contributor. Be nice, and check out our Code of Conduct.
Stuart is a new contributor. Be nice, and check out our Code of Conduct.
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%2f477574%2fconnecting-top-and-bottom-of-adjacent-circles%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
3
This answer has an elegant solution to drawing the two tangents in TikZ tex.stackexchange.com/a/254055/15036
– Thruston
12 hours ago
Are you trying to draw a zoomed-in region? If so, try here: pgfplots.net/tikz/examples/spy-plot or search for
Tikz Spy
on this site.– Thruston
12 hours ago