Graphics, Figures & Tables ⇒ Dots in a Circle Diagram
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm
Dots in a Circle Diagram
I wish to do a diagram consisting of 8 dots that lie in a circle, with a letter next to each of the dots. How do I do this in LaTeX?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Dots in a Circle Diagram
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Dots in a Circle Diagram
For drawing diagrams in LaTeX, TikZ is a great package. For example, the 8 dots could be drawn this way:
In general, I recommend to start questions or explain problems with some code. Questions, which look like "Please produce a document for me" without any code are not attracting helpful users. In contrast, if you would show some code then it's easier to provide specific help.
Stefan
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikz\foreach \i in {1,...,8}
\node (\i) at (45*\i:1.6) {\textbullet};
\end{document}
Stefan
LaTeX.org admin
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm
Re: Dots in a Circle Diagram
I had no code and had not tried as yet tried anything, as I had nothing to try. Not sure what a code is. Do you mean LaTeX commands.
The Latex commands that you have supplied are just what I want. I would also like to write a letter next to each dot. How do I do that? ( I have no idea how to do this, so cannot provide any example.)
The Latex commands that you have supplied are just what I want. I would also like to write a letter next to each dot. How do I do that? ( I have no idea how to do this, so cannot provide any example.)
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Dots in a Circle Diagram
Yes, I mean a LaTeX example. If you would have a specific problem, try to post complete code, but as minimal as possible, so we could check a problem or improve your code, providing specific help.Latexcommunity1000 wrote:Not sure what a code is. Do you mean LaTeX commands.
In this case, I give an example for a start.
For example, a bit longer:Latexcommunity1000 wrote:I would also like to write a letter next to each dot. How do I do that? ( I have no idea how to do this, so cannot provide any example.)
Code: Select all
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every node/.style={node distance=2ex}]
\foreach \i in {1,...,8}
\node (\i) at (45*\i:1.6) {\textbullet};
\node[right of=1] {L};
\node[right of=2] {T};
\node[right of=3] {X};
\end{tikzpicture}
\end{document}
For learning TikZ, type at the command prompt
Code: Select all
texdoc pgf
Stefan
LaTeX.org admin
-
- Posts: 7
- Joined: Sun Jan 29, 2012 11:27 pm
Re: Dots in a Circle Diagram
Thanks a lot. That has saved me a lot of time.