Files
MaFIngB1/Grafiken/I_Abb002.tex
2024-02-07 17:40:53 +01:00

88 lines
2.3 KiB
TeX

%!TEX root=MathIng.tex
\begin{figure}[htb]
%%%die begin und end der minipage dürfen nicht mit Zeilenumbruch getrennt werden
\begin{minipage}[c]{0.33\textwidth}
\begin{framed}
\def\firstcircle{(2,0) circle (2cm)}
\def\secondcircle{(0,1) circle (1cm)} %(45:1)Winkel, Radius
\colorlet{circle edge}{black}
\colorlet{circle area}{black!20!white}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge,thick}}
\begin{tikzpicture}[scale=0.7]
\begin{scope}
\clip \firstcircle;
\fill[filled] \secondcircle;
\end{scope}
\draw[outline] \secondcircle node {$A$};
\draw[outline] \firstcircle node {$B$};
\draw[outline] \secondcircle node {$A$};
\node[anchor=south,yshift=-2em] at (current bounding box.south) {$A \cap B$};
\end{tikzpicture}
%\captionof{figure}{Venn-Diagramme}
\end{framed}
\end{minipage}\begin{minipage}[c]{0.33\textwidth}
\begin{framed}
\def\firstcircle{(2,0) circle (2cm)}
\def\secondcircle{(-0.25,1) circle (1cm)}
\colorlet{circle edge}{black}
\colorlet{circle area}{black!20!white}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},outline/.style={draw=circle edge,thick}}
\begin{tikzpicture}[scale=0.7]
\fill[filled] \secondcircle node {$A$};
\fill[filled] \firstcircle node {$B$};
\draw[outline] \secondcircle node {$A$};
\node[anchor=south,yshift=-8mm] at (current bounding box.south) {$A \cup B$};
\end{tikzpicture}
\end{framed}
\end{minipage}\begin{minipage}[c]{0.33\textwidth}
\begin{framed}
\def\firstcircle{(2,0) circle (2cm)}
\def\secondcircle{(-0.25,1) circle (1cm)}
\colorlet{circle edge}{black}
\colorlet{circle area}{black!20!white}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick},
outline/.style={draw=circle edge,thick}}
\begin{tikzpicture}[scale=0.7]
\begin{scope}
\clip \secondcircle;
\draw[filled, even odd rule] \secondcircle \firstcircle;
\end{scope}
\draw[outline] \firstcircle node {$B$}
\secondcircle node {$A$};
\node[anchor=south,yshift=-8mm] at (current bounding box.south) {$A \setminus B$};
\end{tikzpicture}
\end{framed}
\end{minipage}
\caption{Darstellung von Durchschnitts-, Vereinigungs- und Differenzmenge}\label{Abb002}
\end{figure}