![](https://csdnimg.cn/release/download_crawler_static/8860297/bg5.jpg)
— I discuss this below. I will add grid lines as useful in what follows without
putting the corresponding line in the code.)
Of course, you can put several lines on the same graph:
\begin{tikzpicture}
\draw (0,0) --(1,2) -- (2,3) -- (1,0);
\draw (3,0) -- (1.5,0.5);
\end{tikzpicture}
yields
Notice the semi-colons “;” at the end of lines — it is these semi-colons which
mark the end of instructions. You will see below examples where one instruction
is spread over several lines. We could also put several instructions on one line:
in the last picture I could have written
\draw (0,0) --(1,2) -- (2,3) -- (1,0); \draw (3,0) -- (1.5,0.5);
without changing the output. You can also add and suppress spaces, for instance
in order to make the code easier to read, without changing anything in the
output.
3.2 Scaling pictures
One very useful feature of Tik Z is that you can blow up the picture, by adding
an option “scale” to the environment.
\begin{tikzpicture}[scale=3]
\draw (0,0) -- (1,1);
\end{tikzpicture}
to get
which you can compare to the following:
\begin{tikzpicture}
\draw (0,0) -- (1,1);
\end{tikzpicture}
5