3

I'd like to draw multiple very small shapes. But there seems to be a minimum size of approx. 3mm (for circles) if I use minimum width to change the size.

Is there a simple way to create smaller shapes?

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}

\begin{tikzpicture}
\foreach \x/\y in {0/1,1/2,2/3,3/4}
    \node[circle, draw,minimum width=\y mm, label={90:\y mm}] (c\x) at (\x,0){};
\end{tikzpicture}

\end{document}
2

Set inner sep=0pt:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}

\begin{tikzpicture}
\foreach \x/\y in {0/1,1/2,2/3,3/4}
    \node[inner sep=0pt,circle, draw,minimum width=\y mm, label={90:\y mm}] (c\x) at (\x,0){};
\end{tikzpicture}

\end{document}

enter image description here

| improve this answer | |
  • Thanks, this solved it! – Zapnuk Oct 23 '19 at 12:15
  • 1
    @Zapnuk If you like an answer and it was helpful, please consider upvoting (by clicking on the arrows next to the score) and/or marking it as the accepted answer (by clicking on the checkmark ✓). – Philipp Imhof Oct 23 '19 at 12:20
  • I wanted to but there is a time contraint. I's only possible 15min after creating the post :) – Zapnuk Oct 23 '19 at 12:32

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.