Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. documentclass[10pt]{book}
  2. usepackage{tikz}
  3. usepackage{pgfplots}
  4. usepackage{capt-of}
  5.  
  6. begin{document}
  7.  
  8. begin{center}
  9. begin{tikzpicture}
  10. begin{axis}[legend pos=south east,
  11. xlabel style={align=center},
  12. xlabel={Horizontal Subgrade Modulus, (lb/in)/in},
  13. ymin=600,
  14. ylabel={Maximum Moment, lb-in (N-m)},
  15. height=0.3textheight,
  16. width=0.9columnwidth,
  17. cycle list name=mark list*,
  18. legend columns=2
  19. ]
  20. addplot [nodes near coords,mark=*, %S1
  21. visualization depends on=thisrow{alignment} as alignment,
  22. every node near coord/.style={anchor=alignment},
  23. point meta=explicit symbolic,]
  24. table [meta index=2]{
  25. x y label alignment
  26. 94 637 {footnotesize 637 (71.94)} -110
  27. 185 766 {footnotesize 766 (86.59)} -90
  28. 357 885 {footnotesize 885 (100.02)} 90
  29. };
  30.  
  31. legend {S1}
  32. end{axis}
  33. end{tikzpicture}
  34. captionof{figure}{MAXIMUM MOMENT --- 4 IN. DIAMETER PIPE}
  35. label{4_Mom}
  36. end{center}
  37.  
  38.  
  39. end{document}
  40.  
  41. documentclass[preview]{standalone}
  42.  
  43. usepackage{pgfplots}
  44. usepackage{caption}
  45.  
  46. begin{document}
  47.  
  48. begin{center}
  49. begin{tikzpicture}
  50. begin{axis}[legend pos=south east,
  51. xlabel style={align=center},
  52. xlabel={Horizontal Subgrade Modulus, (lb/in)/in},
  53. ymin=600,
  54. ylabel={Maximum Moment, lb-in (N-m)},
  55. height=0.3textheight,
  56. width=0.9columnwidth,
  57. cycle list name=mark list*,
  58. legend columns=2
  59. ]
  60. addplot [nodes near coords,mark=*, %S1
  61. visualization depends on=thisrow{alignment} as alignment,
  62. every node near coord/.style={anchor=alignment, fill=white},
  63. point meta=explicit symbolic,]
  64. table [meta index=2]{
  65. x y label alignment
  66. 94 637 {footnotesize 637 (71.94)} -110
  67. 185 766 {footnotesize 766 (86.59)} -90
  68. 357 885 {footnotesize 885 (100.02)} 90
  69. };
  70.  
  71. legend {S1}
  72. end{axis}
  73. end{tikzpicture}
  74. captionof{figure}{MAXIMUM MOMENT --- 4 IN. DIAMETER PIPE}
  75. label{4_Mom}
  76. end{center}
  77.  
  78.  
  79. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement