I am trying to draw my first picture in tikz and I need a small help with the following. I want to draw a family of "surfaces" that consists of all the planes parallel to yz-plane, and all the individual points on the yz-plane. I drew the planes but am struggling with the points. So what I need is to fill the yz-plane with dots. Could you give me a help to fill this gap?
Below I put my code so far:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (O) at (0, 0, 0);
\draw[line width=0.3mm,->] (0,0,0) -- (4,0,0) node[anchor=north east]{$y$};
\draw[line width=0.3mm,->] (0,0,0) -- (0,4,0) node[anchor=north east]{$z$};
\draw[line width=0.3mm,->] (0,0,0) -- (0,0,7) node[anchor=east]{$x$};
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 2) -- (0, 3.5, 2) -- (2, 3.5, 2) -- (2, 0, 2) -- cycle;
\draw (0, 0, 2) -- (0, 3.5, 2) -- (2, 3.5, 2) -- (2, 0, 2) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 2.5) -- (0, 3.5, 2.5) -- (2, 3.5, 2.5) -- (2, 0, 2.5) -- cycle;
\draw (0, 0, 2.5) -- (0, 3.5, 2.5) -- (2, 3.5, 2.5) -- (2, 0, 2.5) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 3) -- (0, 3.5, 3) -- (2, 3.5, 3) -- (2, 0, 3) -- cycle;
\draw (0, 0, 3) -- (0, 3.5, 3) -- (2, 3.5, 3) -- (2, 0, 3) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 3.5) -- (0, 3.5, 3.5) -- (2, 3.5, 3.5) -- (2, 0, 3.5) -- cycle;
\draw (0, 0, 3.5) -- (0, 3.5, 3.5) -- (2, 3.5, 3.5) -- (2, 0, 3.5) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 4) -- (0, 3.5, 4) -- (2, 3.5, 4) -- (2, 0, 4) -- cycle;
\draw (0, 0, 4) -- (0, 3.5, 4) -- (2, 3.5, 4) -- (2, 0, 4) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 4.5) -- (0, 3.5, 4.5) -- (2, 3.5, 4.5) -- (2, 0, 4.5) -- cycle;
\draw (0, 0, 4.5) -- (0, 3.5, 4.5) -- (2, 3.5, 4.5) -- (2, 0, 4.5) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 5) -- (0, 3.5, 5) -- (2, 3.5, 5) -- (2, 0, 5) -- cycle;
\draw (0, 0, 5) -- (0, 3.5, 5) -- (2, 3.5, 5) -- (2, 0, 5) -- cycle;
\filldraw[color=blue!10!white,opacity=0.8] (0, 0, 5.5) -- (0, 3.5, 5.5) -- (2, 3.5, 5.5) -- (2, 0, 5.5) -- cycle;
\draw (0, 0, 5.5) -- (0, 3.5, 5.5) -- (2, 3.5, 5.5) -- (2, 0, 5.5) -- cycle;
\end{tikzpicture}
\end{document}
Thanks in advance!
\documentclass{...}
, the required\usepackage
's,\begin{document}
, and\end{document}
. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.blue!...
) with pattern of dots? seepattern library
on page 666 in tikz & pgf manual (V3.0.1.a)\fill[pattern=dots, pattern color=gray] (0,0) ... ;
, in preamble you should add\usetikzlibrary{patterns}