无法填充椭圆和直线之间的区域(较小的区域)

无法填充椭圆和直线之间的区域(较小的区域)

我无法填充 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}

在此处输入图片描述

相关内容