Using Tikz, I want to paint the circular sector (with RADIUS 2), but he paints only a triangle:
\documentclass[fullpage, 12pt]{ article}
\usepackage{tikz}
\usepackage{color}
\begin{center}
\begin{tikzpicture
\draw[fill=gray!40] (0,0) to (1.41,-1.41) to (1.41,1.41) to (0,0) arc;
\draw[ultra thick]
(0,0) circle [radius=2];
\draw[thick]
(0,-2)--(0,2)
(-2,0)--(2,0)
(-1.41,-1.41)--(1.41,1.41)
(-1.41,1.41)--(1.41,-1.41);
\end{tikzpicture}
\end{center}
\end{document}
Best Answer
If you change your first line to
it works. And you don't need
color
package because TikZ inherently usesxcolor
anyways.