[TikZ] Union et intersection d’intervalles

\begin{tikzpicture}
 \draw (0,0) rectangle (12,6);
\draw (0,3) -- (12,3);
\draw (6,0) -- (6,6);
\node at (3,3) [anchor=south] {Intervalles disjoints};
\node at (9,3) [anchor=south] {Intersection 1 point};
\node at (3,0) [anchor=south] {Intervalles extérieurs};
\node at (9,0) [anchor=south] {Intervalles circonscrits};

\draw[->,>=latex] (1,0.8) -- (5,0.8);
\draw[->,>=latex] (1,1.4) -- (5,1.4);
\draw[->,>=latex] (1,2) -- (5,2);
\draw[->,>=latex] (1,2.6) -- (5,2.6);
\node[anchor=east,color=blue] at (1,2.6) {$I$};
\node[anchor=east,scale=0.8,color=black!50!green] at (1,2) {$I\cup J$};
\node[anchor=east,scale=0.8,color=orange] at (1,1.4) {$I \cap J$};
\node[anchor=east,color=red] at (1,0.8) {$J$};
\draw[line width=2bp,color=blue] (2,2.6) -- (3.5,2.6);
\node[color=blue] at (2,2.6) {$[$};
\node[color=blue] at (3.5,2.6) {$]$};
\draw[line width=2bp,color=black!50!green] (2,2) -- (4.2,2);
\node[color=black!50!green] at (2,2) {$[$};
\node[color=black!50!green] at (4.2,2) {$]$};
\draw[line width=2bp,color=orange] (3,1.4) -- (3.5,1.4);
\node[color=orange] at (3,1.4) {$[$};
\node[color=orange] at (3.5,1.4) {$]$};
\draw[line width=2bp,color=red] (3,0.8) -- (4.2,0.8);
\node[color=red] at (3,0.8) {$[$};
\node[color=red] at (4.2,0.8) {$]$};

\draw[->,>=latex] (7,0.8) -- (11,0.8);
\draw[->,>=latex] (7,1.4) -- (11,1.4);
\draw[->,>=latex] (7,2) -- (11,2);
\draw[->,>=latex] (7,2.6) -- (11,2.6);
\node[anchor=west,color=blue] at (11,2.6) {$I$};
\node[anchor=west,scale=0.8,color=black!50!green] at (11,2) {$I\cup J$};
\node[anchor=west,scale=0.8,color=orange] at (11,1.4) {$I \cap J$};
\node[anchor=west,color=red] at (11,0.8) {$J$};
\draw[line width=2bp,color=blue] (8,2.6) -- (10,2.6);
\node[color=blue] at (8,2.6) {$[$};
\node[color=blue] at (10,2.6) {$]$};
\draw[line width=2bp,color=black!50!green] (8,2) -- (10,2);
\node[color=black!50!green] at (8,2) {$[$};
\node[color=black!50!green] at (10,2) {$]$};
\draw[line width=2bp,color=orange] (8.4,1.4) -- (9.7,1.4);
\node[color=orange] at (8.4,1.4) {$[$};
\node[color=orange] at (9.7,1.4) {$]$};
\draw[line width=2bp,color=red] (8.4,0.8) -- (9.7,0.8);
\node[color=red] at (8.4,0.8) {$[$};
\node[color=red] at (9.7,0.8) {$]$};

\draw[->,>=latex] (1,3.8) -- (5,3.8);
\draw[->,>=latex] (1,4.4) -- (5,4.4);
\draw[->,>=latex] (1,5) -- (5,5);
\draw[->,>=latex] (1,5.6) -- (5,5.6);
\node[anchor=east,color=blue] at (1,5.6) {$I$};
\node[anchor=east,scale=0.8,color=black!50!green] at (1,5) {$I\cup J$};
\node[anchor=east,scale=0.8,color=orange] at (1,4.4) {$I \cap J$};
\node[anchor=east,color=red] at (1,3.8) {$J$};
\draw[line width=2bp,color=blue] (1.4,5.6) -- (2.7,5.6);
\node[color=blue] at (1.4,5.6) {$[$};
\node[color=blue] at (2.7,5.6) {$]$};
\draw[line width=2bp,color=black!50!green] (1.4,5) -- (2.7,5);
\draw[line width=2bp,color=black!50!green] (3.5,5) -- (4.7,5);
\node[color=black!50!green] at (1.4,5) {$[$};
\node[color=black!50!green] at (2.7,5) {$]$};
\node[color=black!50!green] at (3.5,5) {$[$};
\node[color=black!50!green] at (4.7,5) {$]$};
\draw[line width=2bp,color=red] (3.5,3.8) -- (4.7,3.8);
\node[color=red] at (3.5,3.8) {$[$};
\node[color=red] at (4.7,3.8) {$]$};

\draw[->,>=latex] (7,3.8) -- (11,3.8);
\draw[->,>=latex] (7,4.4) -- (11,4.4);
\draw[->,>=latex] (7,5) -- (11,5);
\draw[->,>=latex] (7,5.6) -- (11,5.6);
\node[anchor=west,color=blue] at (11,5.6) {$I$};
\node[anchor=west,scale=0.8,color=black!50!green] at (11,5) {$I\cup J$};
\node[anchor=west,scale=0.8,color=orange] at (11,4.4) {$I \cap J$};
\node[anchor=west,color=red] at (11,3.8) {$J$};
\draw[line width=2bp,color=blue] (8,5.6) -- (9,5.6);
\node[color=blue] at (8,5.66) {$[$};
\node[color=blue] at (9,5.6) {$]$};
\draw[line width=2bp,color=black!50!green] (8,5) -- (10.4,5);
\node[color=black!50!green] at (8,5) {$[$};
\node[color=black!50!green] at (10.4,5) {$]$};
\draw[fill,color=orange] (9,4.4) circle (2pt);
\draw[line width=2bp,color=red] (9,3.8) -- (10.4,3.8);
\node[color=red] at (9,3.8) {$[$};
\node[color=red] at (10.4,3.8) {$]$};
\end{tikzpicture}
Ce contenu a été publié dans ArTICE, Blog, LaTeX/TikZ, avec comme mot(s)-clé(s) , , , . Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *