Guest User

Untitled

a guest
May 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. documentclass[]{article}
  2. usepackage{filecontents,pgfplots}
  3.  
  4. begin{filecontents}{myContour.csv}
  5. x,y
  6. 800,200
  7. 50,200
  8. 50,0
  9. 1000,0
  10. 1000,200
  11. 900,200
  12. end{filecontents}
  13.  
  14. begin{document}
  15. pgfplotstableread[col sep = comma]{myContour.csv}{myContour}
  16. begin{tikzpicture}
  17. begin{axis}
  18. addplot [fill=green] table [x={x}, y={y}] {myContour};
  19.  
  20. end{axis}
  21. end{tikzpicture}
  22. end{document}
  23.  
  24. addplot [fill=green] table [x={x}, y={y}] {myContour} closedcycle;
  25.  
  26. addplot [fill=green] table [x={x}, y={y}] {myContour} -- cycle;
  27.  
  28. documentclass[]{article}
  29. usepackage{filecontents,pgfplots}
  30.  
  31. begin{filecontents}{myContour.csv}
  32. x,y
  33. 800,200
  34. 50,200
  35. 50,0
  36. 1000,0
  37. 1000,200
  38. 900,200
  39. end{filecontents}
  40.  
  41. begin{document}
  42. pgfplotstableread[col sep = comma]{myContour.csv}{myContour}
  43. begin{tikzpicture}
  44. begin{axis}
  45. addplot [fill=green] table [x={x}, y={y}] {myContour} -- cycle;
  46.  
  47. end{axis}
  48. end{tikzpicture}
  49. end{document}
Add Comment
Please, Sign In to add comment