latex-pictures

A collection of TikZ drawings and other images 🖌️

real-number-line.tikz (411B)

 1 % This picture represents the real number line
 2 % Copyright Pablo (C) 2021
 3 \begin{tikzpicture}
 4   % The line
 5   \draw[latex-latex] (-3,0) -- (3,0) node[right]{$\mathbb{R}$}; 
 6 
 7   % The numbers
 8   \foreach \x in {-2,-1,0,1,2} 
 9   \draw[shift={(\x,0)}] (0pt,0pt) -- (0pt,-3pt) node[below]{$\x$};
10 
11   % A real number x between 0 and 1
12   \draw[shift={(0.6,0)}] (0pt,6pt) -- (0pt,-6pt) node[below]{$x$};
13 \end{tikzpicture}
14