Examples of PGFPlots package for LaTeX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
568 B

  1. \documentclass[border=10pt]{standalone}
  2. \usepackage{pgfplots}
  3. \usepackage{siunitx}
  4. \pgfplotsset{width=10cm, compat=1.9}
  5. \begin{document}
  6. \begin{tikzpicture}
  7. \begin{axis}[
  8. title={Temperature dependence of $5H_2O$},
  9. xlabel={Temperature [$\unit{\degreeCelsius}$]},
  10. xmin=0,
  11. xtick={0,20,40, 60, 80,100},
  12. ylabel={Solubility},
  13. xmajorgrids=true,
  14. grid style=dashed,
  15. legend pos=north west
  16. ]
  17. \addplot coordinates{
  18. (0,23.1)
  19. (10,27.1)
  20. (20,32)
  21. (30,37.8)
  22. (40,44.6)
  23. (60,61.8)
  24. (80,83.8)
  25. (100, 114)
  26. };
  27. \legend{$5H_2O$}
  28. \end{axis}
  29. \end{tikzpicture}
  30. \end{document}