Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. documentclass[10pt]{article}
  2. usepackage[paperwidth=8.5in,paperheight=11.0in, left=1.25in,right=1.25in,top=1.25in,bottom=1.25in, includefoot]{geometry}
  3. usepackage{graphicx}
  4. usepackage{float}
  5. usepackage{pgfplots}enter image description here
  6. usepgfplotslibrary{fillbetween}
  7. usepackage{tikz}
  8. usetikzlibrary{arrows.meta}
  9. usetikzlibrary{patterns}
  10. pgfplotsset{compat=1.12}
  11.  
  12. begin{document}
  13.  
  14. begin{figure}[H]
  15. begin{minipage}{linewidth}
  16. centering
  17. begin{tikzpicture}
  18. draw[thick, black, name path=rect1] (0,4) -- (0,0) -- (4,0);
  19. draw[thick, black, name path=rect2] (4,0) -- (12,0) -- (12,4) -- (0,4);
  20. draw[thick, black, name path=topo] (0,4) .. controls (2.5,2.5) and (1.5,0) .. (4,0);
  21. tikzfillbetween[of=rect1 and topo]{fill=gray,fill opacity=0.5,pattern=north east lines};
  22. end{tikzpicture}
  23. end{minipage}
  24. end{figure}
  25.  
  26. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement