Next: , Previous: , Up: picture   [Contents][Index]


8.19.4 \graphpaper

Synopsis:

\graphpaper(x_init,y_init)(x_dimen,y_dimen)
\graphpaper[spacing](x_init,y_init)(x_dimen,y_dimen)

Draw a coordinate grid. Requires the graphpap package. The grid’s origin is (x_init,y_init). Grid lines come every spacing units (the default is 10). The grid extends x_dimen units to the right and y_dimen units up. All arguments must be positive integers.

This make a grid with seven vertical lines and eleven horizontal lines.

\usepackage{graphpap}    % in preamble
  ...
\begin{picture}(6,20)    % in document body
  \graphpaper[2](0,0)(12,20)
\end{picture}

The lines are numbered every ten units.


Unofficial LaTeX2e reference manual