Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. documentclass[margin=5mm, tikz]{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{decorations.markings}
  4. begin{document}
  5.  
  6. begin{tikzpicture}[>=latex, scale=0.5]
  7. draw (0,0) grid (8,8);
  8.  
  9. tikzset{mymarks/.style={
  10. ->,
  11. decoration={markings,
  12. mark=
  13. between positions 0 and 1 step 0.7071 cm
  14. with {arrow{>}}},
  15. postaction={decorate}
  16. }
  17. }
  18.  
  19. draw[mymarks,red] (0.5,0.5) -- (7.5,7.5);
  20. draw[mymarks,blue] (3.5,0.5) -- (3.5,5.5);
  21. end{tikzpicture}
  22. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement