Guest User

Untitled

a guest
Nov 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. documentclass[12pt,twoside]{report}
  2. usepackage{tikz}
  3. usepackage{pgfplots}
  4.  
  5. pgfplotstableread[row sep=\,col sep=&]{
  6. simname & default & rmat & cshell \
  7. Weight & 29.1 & 69.2 & 60 \
  8. F1L & 56.0 & 159.9 & 70 \
  9. F1U & 84.9 & 241.1 & 60 \
  10. F2L & 56.0 & 159.9 & 80 \
  11. F2U & 84.9 & 241.1 & 90 \
  12. F3L & 41.5 & 113.5 & 40 \
  13. F3U & 63.2 & 171.5 & 60 \
  14. F4U & 77.4 & 220.1 & 50 \
  15. F5U & 77.4 & 220.1 & 80 \
  16. F6U & 57.6 & 156.5 & 120 \
  17. }dispdata
  18.  
  19. begin{document}
  20. begin{figure}
  21. centering
  22. begin{tikzpicture}
  23. begin{axis}[
  24. width = textwidth,
  25. height = 10cm,
  26. major x tick style = transparent,
  27. ybar=0.05pt,
  28. bar width=10pt,
  29. ymajorgrids = true,
  30. ylabel={Displacement~[%~$L/200$]},
  31. symbolic x coords={Weight, F1L, F1U, F2L, F2U, F3L, F3U, F4U, F5U, F6U},
  32. xtick = data,
  33. scaled y ticks = false,
  34. ymin=0,ymax=260,
  35. ytick style={draw=none},
  36. legend cell align=left,
  37. legend style={
  38. at={(1,1.05)},
  39. anchor=south east,
  40. column sep=1ex
  41. },
  42. %extra y ticks = 100,
  43. %extra y tick labels={},
  44. %extra y tick style={grid=major,major grid style={very thick,draw=red}}
  45. ]
  46. addplot table[x=simname,y=default] {dispdata};
  47. addplot table[x=simname,y=rmat] {dispdata};
  48. addplot table[x=simname,y=cshell] {dispdata};
  49. legend{Default, Removed Material, Complex Shell}
  50. end{axis}
  51. end{tikzpicture}
  52. caption{Comparison of Displacement Results from all Load Cases in the Different Simulation Configurations}
  53. label{fig:ch4-dispcompare}
  54. end{figure}
  55. end{document}
Add Comment
Please, Sign In to add comment