How to make line join circle node perfectly

The name of the pictureThe name of the pictureThe name of the pictureClash 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


TikZ thick line joining two small circle nodes



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.










share|improve this question



























    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


    TikZ thick line joining two small circle nodes



    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.










    share|improve this question

























      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


      TikZ thick line joining two small circle nodes



      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.










      share|improve this question















      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


      TikZ thick line joining two small circle nodes



      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 10 at 21:26

























      asked Sep 9 at 5:34









      onomou

      384




      384




















          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:



          enter image description here



          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





          share|improve this answer






















          • 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: 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

















          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%



          enter image description here



          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





          share|improve this answer




















          • 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

















          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


          enter image description here






          share|improve this answer




















          • @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










          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',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          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






























          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:



          enter image description here



          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





          share|improve this answer






















          • 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: 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














          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:



          enter image description here



          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





          share|improve this answer






















          • 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: 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












          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:



          enter image description here



          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





          share|improve this answer














          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:



          enter image description here



          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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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. 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










          • @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










          • @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










          • @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










          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%



          enter image description here



          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





          share|improve this answer




















          • 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














          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%



          enter image description here



          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





          share|improve this answer




















          • 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












          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%



          enter image description here



          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





          share|improve this answer












          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%



          enter image description here



          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






          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • 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










          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


          enter image description here






          share|improve this answer




















          • @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














          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


          enter image description here






          share|improve this answer




















          • @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












          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


          enter image description here






          share|improve this answer












          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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
















          • @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

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          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













































































          這個網誌中的熱門文章

          How to combine Bézier curves to a surface?

          Why am i infinitely getting the same tweet with the Twitter Search API?

          Carbon dioxide