Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. documentclass[border={1mm 1mm 1mm 1mm}]{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{patterns}
  4.  
  5. begin{document}
  6. begin{tikzpicture}[scale=0.6]
  7. draw[->] (-4.5,0) -- (1.5,0);
  8. draw[->] (0,-4.5) -- (0,4.5);
  9. foreach x in {-4,-3,-2,-1,0,1}
  10. draw (x cm,1.5pt) -- (x cm,-1.5pt);
  11. foreach y in {-4,-3,-2,-1,0,1,2,3,4}
  12. draw (1.5pt,y cm) -- (-1.5pt,y cm);
  13. draw[thick,red,pattern=north east lines,pattern color=red] (-4,-4) -- (0,0)--(-4,4);
  14. draw[draw=none,red,pattern=north west lines,pattern color=blue] (0,0)--(-4,4) -- (4,4)--(4,-4)--(-4,-4)--(0,0);
  15. end{tikzpicture}
  16. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement