Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. documentclass[border=5mm]{standalone}
  2.  
  3.  
  4. usepackage{tikz}
  5. usetikzlibrary{calc}
  6. usetikzlibrary{backgrounds} % For testing with "framed" option to look at the bounding box
  7. usepackage{pgfplots}
  8. pgfplotsset{compat=1.10}
  9. usepgfplotslibrary{fillbetween}
  10. usetikzlibrary{patterns}
  11. pgfplotsset{ticks=none}
  12.  
  13. begin{document}
  14.  
  15. begin{tikzpicture}[hatched/.style = {pattern=north west lines, opacity=0.3}, scale=4]
  16. begin{scope}
  17. draw[line width=0.2cm] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  18. fill[red] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  19. end{scope}
  20.  
  21. begin{scope}[xshift=1cm, yshift=3cm]
  22. draw[line width=0.2cm] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  23. fill[red] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  24. end{scope}
  25.  
  26. begin{scope}[xshift=2cm, yshift=6cm]
  27. draw[line width=0.2cm] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  28. fill[red] (0, 0) -- (2, 0) -- (2, 1) -- (1, 1) -- (1, 2) -- (2, 2) -- (2, 3) -- (0, 3) -- cycle;
  29. end{scope}
  30.  
  31. end{tikzpicture}
  32. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement