3

Consider this example to draw a circle:

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[fill=red](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

The output is:

enter image description here

How not to draw the border of this circle?

  • 1
    \path[fill=red](0, 0)circle(1cm); would also do but nowadays one should use the syntax \path[fill=red](0, 0)circle[radius=1cm]; even though circle(1cm) will continue to work indefinitely (I hope). – Schrödinger's cat Dec 2 at 16:01
10

With draw=none you remove the draw color:

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \draw[fill=red,draw=none](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

or more simply, using just \fill instead of \draw:

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
  \fill[red](0, 0)circle(1cm);
\end{tikzpicture}
\end{document}

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.