Venn Diagram
📅 April 07, 2024 | 👁️ Views: 176
\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
% Define the circles
\def\firstcircle{(0,0) circle (2cm)}
\def\secondcircle{(60:2cm) circle (2cm)}
\def\thirdcircle{(0:2cm) circle (2cm)}
% Draw the rectangle
\draw[dashed] (-3,-2.5) rectangle (4.5,4.5) node at (-2.5,4) {$E$};
% Draw the circles
\draw \firstcircle;
\draw \secondcircle;
\draw \thirdcircle;
% Fill the intersections
\begin{scope}
\clip \firstcircle;
\fill[red,opacity=0.5] \secondcircle;
\end{scope}
\begin{scope}
\clip \firstcircle;
\fill[green,opacity=0.5] \thirdcircle;
\end{scope}
\begin{scope}
\clip \secondcircle;
\fill[blue,opacity=0.5] \thirdcircle;
\end{scope}
% Add the labels
\draw (-2.5,0) node at (-1,-1) {$A$};
\draw (1,2.5) node[above] {$B$};
\draw (1,-2.5) node at (2.5,-1) {$C$};
\draw (-0.1,1.4) node[rotate=20] {$A \cap B \setminus C$};
\draw (1.3,1.5) node[rotate=20] {$B \cap C$};
\draw (0.6,-0.3) node[rotate=45] {$A \cap C$};
\draw (1,0.5) node {$A \cap B \cap C$};
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
% Define the circles
\def\firstcircle{(0,0) circle (2cm)}
\def\secondcircle{(60:2cm) circle (2cm)}
\def\thirdcircle{(0:2cm) circle (2cm)}
% Draw the rectangle
\draw[dashed] (-3,-2.5) rectangle (4.5,4.5) node at (-2.5,4) {$E$};
% Draw the circles
\draw \firstcircle;
\draw \secondcircle;
\draw \thirdcircle;
% Fill the intersections
\begin{scope}
\clip \firstcircle;
\fill[red,opacity=0.5] \secondcircle;
\end{scope}
\begin{scope}
\clip \firstcircle;
\fill[green,opacity=0.5] \thirdcircle;
\end{scope}
\begin{scope}
\clip \secondcircle;
\fill[blue,opacity=0.5] \thirdcircle;
\end{scope}
% Add the labels
\draw (-2.5,0) node at (-1,-1) {$A$};
\draw (1,2.5) node[above] {$B$};
\draw (1,-2.5) node at (2.5,-1) {$C$};
\draw (-0.1,1.4) node[rotate=20] {$A \cap B \setminus C$};
\draw (1.3,1.5) node[rotate=20] {$B \cap C$};
\draw (0.6,-0.3) node[rotate=45] {$A \cap C$};
\draw (1,0.5) node {$A \cap B \cap C$};
\end{tikzpicture}
\end{document}
Related Courses, Exams, and Exercises
- Branches infinis Course
- Circuit RLC Course
- Comment tracer des solutions d'inégalités trigonométriques sur des intervalles Course
- diagramme d'algorithme Simplexe Course
- figure 1 Course
- Illustration of Nearest Neighbor Interpolation in a Two-Dimensional Space Course
- La Cloche de Gauss Course
- Large numbers names Course
- Résoudre une inégalité trigonométriques avec tikz Course
- Scatter Plot with Data From csv File Course
- Triangle De Pascal avec Latex Course
- Windows System Architecture Course
Course PDF:
if you find this content helpful, Please consider supporting me with a small donation
إن وجدت هذا المحتوى مفيدا، من فضلك إدعمني بمبلغ بسيط كتبرع
Buy me a coffee — إشتر لي قهوة
PayPal.me • عبر بايبالOr bank transfer • أو حوالة بنكية
Titulaire : RADOUAN MOSAID RIB : 230 090 6501953211022000 65 IBAN : MA64 2300 9065 0195 3211 0220 0065 BIC / SWIFT : CIHMMAMC
Most Viewed Courses
Tous les sujets des suites numériques des examens nationaux 2008 - 2022
Views: 1.63K
Exam • Maths • 2 Bac Science
DM 1 - Arithmetiques, Calcul vectoriel et projection
Views: 1.56K
Exercise • Maths • Tronc Commun Sciences
MATHEMATIQUES Examens nationaux 2003-2021 2 Bac.Sciences expérimentales
Views: 1.52K
Exam • Maths • 2 Bac Science
Control 01 S01 En arithmétiques et Calcul vectoriel - A 2025-2026
Views: 1.49K
Exam • Maths • Tronc Commun Sciences
Recent Articles
Boosting LaTeX Editing with Custom Vim Mappings
23 Nov 2025
Quran Search: A Feature rich and modern design
13 Feb 2025