i was wondering how i could create a perspective 2D grid like this blue one on the left:


with Tikz. My current approach:

    \draw[step=2.5mm,gray,very thin] (4,0) grid (7,1);

Unfortunately it isn't possible to rotate the draw in 3D.

  • Peripherally related: tex.stackexchange.com/questions/319172/… Jun 2, 2017 at 10:01
  • This should be relatively straight forward, just drawing the appropriate straight lines, using the tikz package. Show us what coding you have tried, and we can answer more precisely. Jun 2, 2017 at 10:17
  • I edited my initial question. Thanks for your comment. Jun 2, 2017 at 10:23
  • 1
    Could you please complete your code so it is compilable?
    – cfr
    Jun 2, 2017 at 11:19

1 Answer 1


Not very efficient. Elegance is left as an exercise for the reader.

  \foreach \i [count=\ino from 0] in {-5,-4,...,5}
    \draw [Cerulean] (\i,-10,0) -- (0,0,0) \foreach \j in {0,...,10} {coordinate [pos={\j/10}] (c-\ino-\j)};
  \foreach \i in {0,...,7} \draw [Cerulean] (c-10-\i) -- (c-0-\i);
  \draw [Cerulean] (c-0-0) -- ++(0,7,0) \foreach \j in {0,...,7} {coordinate [pos={\j/7}] (a\j)} -- (0,0,0) \foreach \i in {0,...,10} {coordinate [pos={\i/10}] (b\i)};
  \foreach \i in {1,...,7} \path (a\i) -- (0,0,0) \foreach \j in {0,...,10} {coordinate [pos={\j/10}] (d-\i-\j)};
  \foreach \i in {1,...,7} \draw [Cerulean] (a\i) -- (d-\i-7) (c-0-\i) -- (b\i);

perspective grid


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.