在维恩图中为特定区域着色

在维恩图中为特定区域着色

我想为维恩图中 \bar{A} 部分中标记的特定区域着色。有什么建议吗?

\documentclass[11pt]{article}
\usepackage[a4paper, left = 3cm, right = 3cm, top = 2.5cm]{geometry}
\usepackage{tikz}
\begin{center}
\begin{tikzpicture}
    \node at (-3,3.5) {\LARGE\textbf{$\Omega$}};

    \draw (-4,3) rectangle (4,-2);
    \draw (-1,3) .. controls (1,-1) and (1,0) .. (4,-1);

    \node at (2,1) {\LARGE{$A$}};
    \node at (-2,0) {\LARGE{$\bar{A}$}};
\end{tikzpicture}
\end{center}

答案1

修改第二个绘制命令如下

\draw[fill=orange] (-1,3) .. controls (1,-1) and (1,0) .. (4,-1) -- (4,-2) -- (-4,-2) -- (-4,3) --cycle;

在此处输入图片描述

相关内容