Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. documentclass[pstricks,dvipsnames]{standalone}
  2. usepackage{pst-plot,filecontents,siunitx}
  3.  
  4. begin{filecontents*}{test.data}
  5. 60 0
  6. 70 2
  7. 80 8
  8. 90 24
  9. 100 56
  10. 110 86
  11. 120 110
  12. 130 120
  13. end{filecontents*}
  14.  
  15. newpsstyle{mygrid}
  16. {
  17. Dy=10,
  18. Dx=10,
  19. Ox=60,
  20. tickwidth=1.2pt,
  21. subticksize=1,
  22. xsubticks=5,
  23. ysubticks=5,
  24. subtickcolor=gray,
  25. subtickwidth=.8pt,
  26. xAxisLabel=huge Mass (si{gram}),
  27. xAxisLabelPos={c,-7},
  28. yAxisLabel=huge Cumulative Frequency,
  29. yAxisLabelPos={-6,c},
  30. llx=-2,
  31. lly=-2,
  32. urx=1,
  33. ury=1,
  34. }
  35. readdata{mydata}{test.data}
  36. begin{document}
  37. begin{psgraph}[style=mygrid,xticksize=0 120,yticksize=0 70](60,0)(130,120){12.5cm}{20cm}
  38. listplot[plotstyle=cspline,linecolor=black,linewidth=2.4pt,showpoints]{mydata}
  39. end{psgraph}
  40. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement