# [Tex/LaTex] Vertical help lines only in TikZ

tikz-pgf

The following tiKz code gives you a 100×10 grid of help lines.

\draw [help lines, dashed] (0,0) grid(100,10);


What is the code if you just want the 100 vertical helplines but not the 10 horizontal ones?

You can use ystep to fix the number of horizontal lines. For example, if you use ystep=10 with a 10 X 10 grid:

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\draw [help lines, dashed,ystep=10] (0,0) grid(10,10);
\end{tikzpicture}

\end{document}


you get

And there is always brute force:

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\foreach \x in {0,...,9}{
\draw [help lines, dashed] (\x,0) -- (\x,10);
}
\end{tikzpicture}

\end{document}