
我無法填滿弧線的完整區域(較小的區域),即 ABC,弧線的一部分被留下,請幫忙解決這個問題。謝謝...
\documentclass{article}
\usepackage{tikz,pgfplots}
%\usepackage[x11names]{xcolor}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{pgfplots}\pgfplotsset{compat=newest}
\pgfdeclarelayer{bg} % declare background
\pgfsetlayers{bg,main} % order of layers (main = standard layer)
\pgfplotsset{compat=1.13}
\usepackage{amsmath}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\draw (0,-2) -- (0,3);
\draw (-4,0) -- (5,0);
\draw (0,0)circle[x radius = 3 cm , y radius = 1 cm]; % DRAW ELLIPSE
\draw (3,0)coordinate[label=below:$A$](a);
\draw (1,1)coordinate[label=above:$B$](b);
\draw (0,0)coordinate[label=below left:$O$](o)
(0,1)coordinate[label=left:$C$](c);
\begin{pgfonlayer}{bg}
\clip plot (0,0)circle[x radius = 3 cm , y radius = 1 cm];
\fill[blue] (a) -- (b) -- (c) -- (a) -- cycle;
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
答案1
當你說「弧」時,你是指這個嗎?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\pgfdeclarelayer{bg} % declare background
\pgfsetlayers{bg,main} % order of layers (main = standard layer)
\begin{document}
\begin{tikzpicture}
\draw (0,-2) -- (0,3);
\draw (-4,0) -- (5,0);
\draw (0,0)circle[x radius = 3 cm , y radius = 1 cm]; % DRAW ELLIPSE
\draw (3,0)coordinate[label=below:$A$](a);
\draw (1,1)coordinate[label=above:$B$](b);
\draw (0,0)coordinate[label=below left:$O$](o)
(0,1)coordinate[label=left:$C$](c);
\begin{pgfonlayer}{bg}
\clip plot (0,0)circle[x radius = 3 cm , y radius = 1 cm];
\fill[blue] (a) |- (c) --cycle;
\end{pgfonlayer}
\end{tikzpicture}
\end{document}