Saturday , December 14 2019
Home / Uncategorized / How to correctly center the circular arrow TikZ – TeX

How to correctly center the circular arrow TikZ – TeX



One way would be to not Use the or- arrow style and draw the circle with the point where you create the node:

node [circle, draw=red, inner sep=-1pt] (Plus sign) a (0,0) {+}

Here, I called this knot (Plus sign) so that we can draw the line on this node without having to re-specify the coordinates:

to draw[-,red] (Plus sign) - (1,1) node[above] {some labels};

enter the description of the image here

Alternatively you can use a pin:

enter the description of the image here

Code:

 documentclass[border=1pt]{independent, autonomous}
 Usepackage {} tikz
 usetikzlibrary {} arrows
 Begin {document}

 Begin {} tikzpicture
node [circle, draw=red, inner sep=-1pt] (Plus sign) a (0,0) {+};
to draw[-,red] (Plus sign) - (1,1) node[above] {some labels};
 End {} tikzpicture

 End {document}

Code: pin

 documentclass[border=1pt]{independent, autonomous}
 Usepackage {} tikz
 Usetikzlibrary {} arrows.meta
 Begin {document}

 Begin {} tikzpicture
 node (plus sign) a (0,0) {+};
node [circle, draw=red, inner sep=1pt, pin={[pin edge={red, thin}, pin distance=1.4cm, pin position=45, text=red] {some label}}]a (plus sign) {};
 End {} tikzpicture
 End {document}


Source link

Leave a Reply

Your email address will not be published.