0

I want to create the following picture, how should i proceed?

enter image description here

Thanks!

5

The following example uses an uniform distribution of the points/angles.

\documentclass{article}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \def\Radius{20mm}
  \draw
    (0, 0) coordinate (M) circle[radius=\Radius]
  ;
  % Full circle evenly divided into 14 pieces
  \filldraw[fill=white, radius=2pt]
    \foreach \i in {0, ..., 3, 12, 13} {
      (M) +(90 - \i * 360/14:\Radius) circle[]
    }
  ;
  \path
    \foreach \i/\a in {0/1, 1/2, 2/3, 3/4, 12/20, 13/21} {
      (M) -- node[pos=.8] {$a_{\a}$} +(90 - \i * 360/14:\Radius)
    }
  ;
  \fill[radius=1.5pt]
    \foreach \i in {4, ..., 11} {
      (M) +(90 - \i * 360/14:.8*\Radius) circle[]
    }
  ;
\end{tikzpicture}
\end{document}

Result

  • thanks for your answer. please, tell me from where do you learn programming in latex? can you recommend some books? – Iuli Aug 23 '16 at 14:27
  • @Iuli Learning by doing, TikZ manual, answering questions, ... – Heiko Oberdiek Aug 23 '16 at 16:24

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.