答案1
类似这样的事情可以让你开始:
\documentclass[border=1mm, tikz]{standalone}
\begin{document}
\begin{tikzpicture}[
open interval/.style={circle, draw, fill=white, inner sep=1pt},
closed interval/.style={circle, draw, fill, inner sep=1pt},
]
% intersection area
\fill[black!20] (-3,0) rectangle (3,1.1);
% real line
\draw[<->, thick] (-5,0) node[below] {$-\infty$} -- (5,0) node[below] {$+\infty$};
% [x, \infty[
\draw[->] (-3,0) node[below] {$x$} -- (-3,.9) node[closed interval] {} -- (5,.9);
% ]x', -\infty[
\draw[->] (3,0) node[below] {$x'$} -- (3,1.1) node[open interval] {} -- (-5,1.1);
\end{tikzpicture}
\end{document}