I defined an arrow circle but I do not know, how to move it to a specified coordinate.


\foreach \x in {0,30,...,360} \draw[<-] (\x:0.35cm) -- (\x:0.7cm);    
  • (1) welcome, (2) you are going to get help much faster if you provide a full minimal example others can copy and test as is, here we have to guess the preamble and so a lot opf people mass on questions like this. (3) you might want to look up coordinate calculations (see the calc tikz library) and relative coordinates, hint ` ++(\x:0.7cm)` (BTW: cm is the default unit so you can leave out the cm part) – daleif Jul 2 '19 at 12:17

Like this?

  pics/arcirc/.style args={#1,name=#2}{
      \begin{scope}[local bounding box=#2,>=latex]
        \foreach \x in {0,30,...,360} \draw[<-,#1] (\x:0.35cm) -- (\x:0.7cm);   
\pic at (0,0) {arcirc={red,name=a}};
\pic at (2,0) {arcirc={blue,name=b}};
\pic at (0,-2) {arcirc={green,name=c}};
\pic at (2,-2) {arcirc={cyan,name=d}};
\node at (a.center){a};
\node [draw,circle,minimum size=1pt] at (b.center){};
\draw [green](c.90)--++(0:1)node[midway,above]{text};


enter image description here

| improve this answer | |
  • 1
    thank you, that's exactly what i was looking for :) – Secr3t Jul 2 '19 at 12:25
  • 1
    @Secr3t, your welcome. – ferahfeza Jul 2 '19 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.