2

I am trying to draw a bullet point (filled circle) with Tikz. With the following code, I can draw the circle:

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\begin{tikzpicture}

\node [draw, shape = circle, fill = black, minimum size = 0.1cm] (){};

\end{tikzpicture}
\end{document}

I would like to draw a smaller point, but decreasing the minimum size = 0.1 cm to, say, 0.0001 cm does not make a difference. I am wondering what the cause of this behaviour is, and how to fix it?

4
  • 4
    I suspect that it is allowing some space for the text of your \node -- why don't you just use \fill (0,0) circle [radius=0.01mm]; ? Section 2 of the manual explains the basic path operations.
    – Thruston
    Jul 24 '20 at 10:08
  • @Thruston Sounds like a potential answer
    – Joseph Wright
    Jul 24 '20 at 10:16
  • Thanks for the quick response! I currently use it in this format: \node(legend) at (1.7,-6.85) {Test: }; \node [right=0.2cm of legend, draw, shape = circle, fill = black, minimum size = 0.1cm, inner sep = 1.5pt] (status1){}; But cannot seem to get you answer to work.
    – user213544
    Jul 24 '20 at 10:21
  • 1
    TikZ nodes are intended to contain text. Even an empty text field will require 2 inner sep worth of space (about 0.666em). Jul 24 '20 at 12:36
3

Add in node options the following

\node [draw, shape = circle, fill = black, minimum size = 0.1cm, inner sep=0pt] (){};

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.