How to make line join circle node perfectly
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
I was connecting a line to a circle node, when I noticed that (under a microscope) the line does not meet the circular node's radius perfectly. This wouldn't normally be visible, but with an ultra thick line and small node radius, the gap becomes obvious.
documentclass[preview]standalone
usepackagetikz
begindocument
begintikzpicture
draw (0,-3pt) -- (0,3pt);
draw (0.3,-3pt) -- (0.3,3pt);
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt,fill=white] ;
draw[ultra thick] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
How do I make the line meet without any gap?
EDIT: Ideally the circle nodes should be empty, so as to allow lines behind them to be visible or not. I have updated the MWE and picture to reflect that.
tikz-pgf
add a comment |Â
up vote
7
down vote
favorite
I was connecting a line to a circle node, when I noticed that (under a microscope) the line does not meet the circular node's radius perfectly. This wouldn't normally be visible, but with an ultra thick line and small node radius, the gap becomes obvious.
documentclass[preview]standalone
usepackagetikz
begindocument
begintikzpicture
draw (0,-3pt) -- (0,3pt);
draw (0.3,-3pt) -- (0.3,3pt);
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt,fill=white] ;
draw[ultra thick] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
How do I make the line meet without any gap?
EDIT: Ideally the circle nodes should be empty, so as to allow lines behind them to be visible or not. I have updated the MWE and picture to reflect that.
tikz-pgf
add a comment |Â
up vote
7
down vote
favorite
up vote
7
down vote
favorite
I was connecting a line to a circle node, when I noticed that (under a microscope) the line does not meet the circular node's radius perfectly. This wouldn't normally be visible, but with an ultra thick line and small node radius, the gap becomes obvious.
documentclass[preview]standalone
usepackagetikz
begindocument
begintikzpicture
draw (0,-3pt) -- (0,3pt);
draw (0.3,-3pt) -- (0.3,3pt);
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt,fill=white] ;
draw[ultra thick] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
How do I make the line meet without any gap?
EDIT: Ideally the circle nodes should be empty, so as to allow lines behind them to be visible or not. I have updated the MWE and picture to reflect that.
tikz-pgf
I was connecting a line to a circle node, when I noticed that (under a microscope) the line does not meet the circular node's radius perfectly. This wouldn't normally be visible, but with an ultra thick line and small node radius, the gap becomes obvious.
documentclass[preview]standalone
usepackagetikz
begindocument
begintikzpicture
draw (0,-3pt) -- (0,3pt);
draw (0.3,-3pt) -- (0.3,3pt);
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt,fill=white] ;
draw[ultra thick] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
How do I make the line meet without any gap?
EDIT: Ideally the circle nodes should be empty, so as to allow lines behind them to be visible or not. I have updated the MWE and picture to reflect that.
tikz-pgf
tikz-pgf
edited Sep 10 at 21:26
asked Sep 9 at 5:34
onomou
384
384
add a comment |Â
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
8
down vote
accepted
Anohter option is to simply connect the center
points and then redraw with a fill=white
option, or, as per marmot's suggestion, you can do the drawing all at once:
Code:
documentclass[preview, border=0.5pt]standalone
usepackagetikz
tikzsetNode Style/.style=thick, draw,fill=white,circle,inner sep=0pt,minimum size=3pt
begindocument
begintikzpicture
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
draw [ultra thick] (leftEnd.center) -- (rightEnd.center);
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
endtikzpicture
%
begintikzpicture
draw[ultra thick]
(0,0) node[Node Style]
-- (0.3,0) node[Node Style] ;
endtikzpicture%
enddocument
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Loadusetikzlibrarybackgrounds
and dobeginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.
â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
add a comment |Â
up vote
7
down vote
You can adjust the shorten value ,shorten >=1.5pt,shorten <=1.5pt
, or use the arrows.meta library to get the same result.
RESULT: Zoom 1000%
MWE:
documentclass[tikz]standalone
usetikzlibraryarrows.meta
begindocument
begintikzpicture[
>=Circle[fill=none,length=3.5pt,line width=0.5]
]
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
draw[ultra thick,shorten >=1.5pt,shorten <=1.5pt] (leftEnd.center) -- (rightEnd.center);
draw[ultra thick,<->,shorten >=-1.75pt,shorten <=-1.75pt] (0,-10pt) -- ++(0.3,0);
endtikzpicture
enddocument
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?
â AndréC
Sep 9 at 7:07
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
 |Â
show 1 more comment
up vote
7
down vote
to the some line width it helps if you set in nodes' style outer sep=0pt
:
documentclass[tikz, margin=3mm]standalone
begindocument
begintikzpicture[
circ/.style = circle, draw, inner sep=0pt, minimum size=3pt, outer sep=0pt
]
node (leftEnd) [circ] ;
node (rightEnd) [circ] at (0.5,0) ;
draw[ultra thick] (leftEnd) -- (rightEnd);
draw[line width=6pt, gray, semitransparent] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
Anohter option is to simply connect the center
points and then redraw with a fill=white
option, or, as per marmot's suggestion, you can do the drawing all at once:
Code:
documentclass[preview, border=0.5pt]standalone
usepackagetikz
tikzsetNode Style/.style=thick, draw,fill=white,circle,inner sep=0pt,minimum size=3pt
begindocument
begintikzpicture
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
draw [ultra thick] (leftEnd.center) -- (rightEnd.center);
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
endtikzpicture
%
begintikzpicture
draw[ultra thick]
(0,0) node[Node Style]
-- (0.3,0) node[Node Style] ;
endtikzpicture%
enddocument
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Loadusetikzlibrarybackgrounds
and dobeginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.
â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
add a comment |Â
up vote
8
down vote
accepted
Anohter option is to simply connect the center
points and then redraw with a fill=white
option, or, as per marmot's suggestion, you can do the drawing all at once:
Code:
documentclass[preview, border=0.5pt]standalone
usepackagetikz
tikzsetNode Style/.style=thick, draw,fill=white,circle,inner sep=0pt,minimum size=3pt
begindocument
begintikzpicture
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
draw [ultra thick] (leftEnd.center) -- (rightEnd.center);
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
endtikzpicture
%
begintikzpicture
draw[ultra thick]
(0,0) node[Node Style]
-- (0.3,0) node[Node Style] ;
endtikzpicture%
enddocument
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Loadusetikzlibrarybackgrounds
and dobeginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.
â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
Anohter option is to simply connect the center
points and then redraw with a fill=white
option, or, as per marmot's suggestion, you can do the drawing all at once:
Code:
documentclass[preview, border=0.5pt]standalone
usepackagetikz
tikzsetNode Style/.style=thick, draw,fill=white,circle,inner sep=0pt,minimum size=3pt
begindocument
begintikzpicture
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
draw [ultra thick] (leftEnd.center) -- (rightEnd.center);
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
endtikzpicture
%
begintikzpicture
draw[ultra thick]
(0,0) node[Node Style]
-- (0.3,0) node[Node Style] ;
endtikzpicture%
enddocument
Anohter option is to simply connect the center
points and then redraw with a fill=white
option, or, as per marmot's suggestion, you can do the drawing all at once:
Code:
documentclass[preview, border=0.5pt]standalone
usepackagetikz
tikzsetNode Style/.style=thick, draw,fill=white,circle,inner sep=0pt,minimum size=3pt
begindocument
begintikzpicture
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
draw [ultra thick] (leftEnd.center) -- (rightEnd.center);
node (leftEnd) at (0,0) [Node Style] ;
node (rightEnd) at (0.3,0) [Node Style] ;
endtikzpicture
%
begintikzpicture
draw[ultra thick]
(0,0) node[Node Style]
-- (0.3,0) node[Node Style] ;
endtikzpicture%
enddocument
edited Sep 10 at 8:57
answered Sep 9 at 9:01
Peter Grill
161k24427733
161k24427733
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Loadusetikzlibrarybackgrounds
and dobeginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.
â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
add a comment |Â
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Loadusetikzlibrarybackgrounds
and dobeginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.
â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
This works in isolation, but my use case is more general. I am graphing linear inequalities and use the circle nodes for endpoints of an inequality, eg. this one.
â onomou
Sep 10 at 9:40
@onomou This answer still works if you draw these things on the background layer. Load
usetikzlibrarybackgrounds
and do beginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.â marmot
Sep 10 at 11:25
@onomou This answer still works if you draw these things on the background layer. Load
usetikzlibrarybackgrounds
and do beginscope[on background layer] draw[ultra thick] (0,0) node[Node Style] -- (0.3,0) node[Node Style] ; endscope
.â marmot
Sep 10 at 11:25
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@onomou: If marmot's suggestion or one of the answers here does not work for you, please update the question with a MWE the reflects your use case more accurately.
â Peter Grill
Sep 10 at 20:12
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
@PeterGrill Good point. I have updated the question for clarity.
â onomou
Sep 10 at 21:27
add a comment |Â
up vote
7
down vote
You can adjust the shorten value ,shorten >=1.5pt,shorten <=1.5pt
, or use the arrows.meta library to get the same result.
RESULT: Zoom 1000%
MWE:
documentclass[tikz]standalone
usetikzlibraryarrows.meta
begindocument
begintikzpicture[
>=Circle[fill=none,length=3.5pt,line width=0.5]
]
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
draw[ultra thick,shorten >=1.5pt,shorten <=1.5pt] (leftEnd.center) -- (rightEnd.center);
draw[ultra thick,<->,shorten >=-1.75pt,shorten <=-1.75pt] (0,-10pt) -- ++(0.3,0);
endtikzpicture
enddocument
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?
â AndréC
Sep 9 at 7:07
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
 |Â
show 1 more comment
up vote
7
down vote
You can adjust the shorten value ,shorten >=1.5pt,shorten <=1.5pt
, or use the arrows.meta library to get the same result.
RESULT: Zoom 1000%
MWE:
documentclass[tikz]standalone
usetikzlibraryarrows.meta
begindocument
begintikzpicture[
>=Circle[fill=none,length=3.5pt,line width=0.5]
]
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
draw[ultra thick,shorten >=1.5pt,shorten <=1.5pt] (leftEnd.center) -- (rightEnd.center);
draw[ultra thick,<->,shorten >=-1.75pt,shorten <=-1.75pt] (0,-10pt) -- ++(0.3,0);
endtikzpicture
enddocument
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?
â AndréC
Sep 9 at 7:07
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
 |Â
show 1 more comment
up vote
7
down vote
up vote
7
down vote
You can adjust the shorten value ,shorten >=1.5pt,shorten <=1.5pt
, or use the arrows.meta library to get the same result.
RESULT: Zoom 1000%
MWE:
documentclass[tikz]standalone
usetikzlibraryarrows.meta
begindocument
begintikzpicture[
>=Circle[fill=none,length=3.5pt,line width=0.5]
]
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
draw[ultra thick,shorten >=1.5pt,shorten <=1.5pt] (leftEnd.center) -- (rightEnd.center);
draw[ultra thick,<->,shorten >=-1.75pt,shorten <=-1.75pt] (0,-10pt) -- ++(0.3,0);
endtikzpicture
enddocument
You can adjust the shorten value ,shorten >=1.5pt,shorten <=1.5pt
, or use the arrows.meta library to get the same result.
RESULT: Zoom 1000%
MWE:
documentclass[tikz]standalone
usetikzlibraryarrows.meta
begindocument
begintikzpicture[
>=Circle[fill=none,length=3.5pt,line width=0.5]
]
node (leftEnd) at (0,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
node (rightEnd) at (0.3,0) [draw,circle,inner sep=0pt,minimum size=3pt] ;
draw[ultra thick,shorten >=1.5pt,shorten <=1.5pt] (leftEnd.center) -- (rightEnd.center);
draw[ultra thick,<->,shorten >=-1.75pt,shorten <=-1.75pt] (0,-10pt) -- ++(0.3,0);
endtikzpicture
enddocument
answered Sep 9 at 6:39
J Leon V.
6,815528
6,815528
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?
â AndréC
Sep 9 at 7:07
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
 |Â
show 1 more comment
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?
â AndréC
Sep 9 at 7:07
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?â AndréC
Sep 9 at 7:07
shorten >=
is no longer documented in the 3.01a manual of Tikz, can you document it more fully in order to make your solution understandable for those who do not have the Tikz 1.18 manual?â AndréC
Sep 9 at 7:07
1
1
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@AndréC: Hmmm. Wow, did not know that that was going to be removed? It is still used in may examples though.
â Peter Grill
Sep 9 at 8:55
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
@PeterGrill I see that it is used in many examples, but the documentation is no longer given, which hinders the understanding of the answer. Thus, it would be nice if its use were explained in the answers that use it.
â AndréC
Sep 9 at 8:58
1
1
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
@Zarko The examples in the documentation will never replace clear documentation such as the 1.18 manual, which is fortunately still available (until when?) here: bu.edu/math/files/2013/08/tikzpgfmanual.pdf
â AndréC
Sep 9 at 14:00
1
1
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
@AndréC, thank you for the link. yeah, this manual is 11 year old, short and (very) nice. this description seems to be lost when was arrows.meta adding. a big pity!
â Zarko
Sep 9 at 14:10
 |Â
show 1 more comment
up vote
7
down vote
to the some line width it helps if you set in nodes' style outer sep=0pt
:
documentclass[tikz, margin=3mm]standalone
begindocument
begintikzpicture[
circ/.style = circle, draw, inner sep=0pt, minimum size=3pt, outer sep=0pt
]
node (leftEnd) [circ] ;
node (rightEnd) [circ] at (0.5,0) ;
draw[ultra thick] (leftEnd) -- (rightEnd);
draw[line width=6pt, gray, semitransparent] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
add a comment |Â
up vote
7
down vote
to the some line width it helps if you set in nodes' style outer sep=0pt
:
documentclass[tikz, margin=3mm]standalone
begindocument
begintikzpicture[
circ/.style = circle, draw, inner sep=0pt, minimum size=3pt, outer sep=0pt
]
node (leftEnd) [circ] ;
node (rightEnd) [circ] at (0.5,0) ;
draw[ultra thick] (leftEnd) -- (rightEnd);
draw[line width=6pt, gray, semitransparent] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
add a comment |Â
up vote
7
down vote
up vote
7
down vote
to the some line width it helps if you set in nodes' style outer sep=0pt
:
documentclass[tikz, margin=3mm]standalone
begindocument
begintikzpicture[
circ/.style = circle, draw, inner sep=0pt, minimum size=3pt, outer sep=0pt
]
node (leftEnd) [circ] ;
node (rightEnd) [circ] at (0.5,0) ;
draw[ultra thick] (leftEnd) -- (rightEnd);
draw[line width=6pt, gray, semitransparent] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
to the some line width it helps if you set in nodes' style outer sep=0pt
:
documentclass[tikz, margin=3mm]standalone
begindocument
begintikzpicture[
circ/.style = circle, draw, inner sep=0pt, minimum size=3pt, outer sep=0pt
]
node (leftEnd) [circ] ;
node (rightEnd) [circ] at (0.5,0) ;
draw[ultra thick] (leftEnd) -- (rightEnd);
draw[line width=6pt, gray, semitransparent] (leftEnd) -- (rightEnd);
endtikzpicture
enddocument
answered Sep 9 at 12:40
Zarko
113k861150
113k861150
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
add a comment |Â
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
@marmot, i know this! also i mentioned in answer that proposed solution wok to a some line width :-) . however, i didn't mention to which ratio between circle and line width ...
â Zarko
Sep 9 at 15:13
1
1
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
This seems to be the simplest method, not needing any extra tikzlibrary or scoping.
â onomou
Sep 10 at 21:29
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%2f450062%2fhow-to-make-line-join-circle-node-perfectly%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