Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. documentclass[paper=a4,12pt,version=last]{scrartcl}
  2. usepackage[miktex]{gnuplottex}
  3. usepackage{pgfplots}
  4. usepackage{pgfplotstable}
  5. pgfplotsset{compat=newest}
  6.  
  7. begin{document}
  8. section{PGFPLOTS}
  9. Note how the tick labels match the document font.
  10.  
  11. begin{tikzpicture}
  12. begin{axis}[domain=-10:10, samples=50, smooth, no markers, enlargelimits=false]
  13. addplot gnuplot {sin(x)}; addlegendentry{$sin(x)$}
  14. addplot gnuplot {cos(x)}; addlegendentry{$cos(x)$}
  15. end{axis}
  16. end{tikzpicture}
  17. end{document}
  18.  
  19. pdflatex -synctex=1 -interaction=nonstopmode %.tex
  20.  
  21. pdflatex -shell-escape -synctex=1 -interaction=nonstopmode %.tex
  22.  
  23. addplot gnuplot ...
  24.  
  25. documentclass[paper=a4,fontsize=12pt,version=last]{scrartcl}
  26. usepackage{pgfplots}
  27. pgfplotsset{compat= newest, width=10cm, }
  28. begin{document}
  29. begin{figure}
  30. centering
  31. begin{tikzpicture}
  32. begin{axis}[
  33. height=9cm,
  34. width=9cm,
  35. grid=minor,
  36. ]
  37. addplot gnuplot[id=filesuffix]{(-x**5 - 242)};
  38. addlegendentry{model}
  39. end{axis}
  40. end{tikzpicture}
  41. end{figure}
  42. end{document}
  43.  
  44. documentclass [12pt, a4paper, headinclude, titlepage]{scrartcl}
  45. usepackage[ngerman]{babel}
  46. usepackage[fixlanguage]{babelbib}
  47. selectbiblanguage{german}
  48. usepackage[utf8]{inputenc}
  49. usepackage[T1]{fontenc}
  50. usepackage[a4paper]{geometry}
  51. usepackage[fleqn]{amsmath}
  52. usepackage{pgfplots}
  53. usepackage{pgf}
  54. usepackage{tikz}
  55. usepackage{float}
  56.  
  57. pgfplotsset{width=7cm, compat=newest}
  58.  
  59. begin{document}
  60. begin{figure}[H]
  61. centering
  62. begin{tikzpicture}
  63. begin{axis}
  64. [ ylabel=$kappa$ / (S/m) , xlabel=c / (mol/m$^3$), title=textbf{c gegen $kappa$},
  65. xmin=0, xmax=130,
  66. ymin=0, ymax=0.3,
  67. width=0.6textwidth, height=0.45textwidth, x axis line style={-}, y axis line style={-},
  68. ]
  69. addplot [only marks, gray, raw gnuplot, id=raw3] function{plot 'Daten.txt' u 1:2};
  70. addplot [orange, dashed, raw gnuplot, id=raw3] function{plot 'ber.txt' u 1:3};
  71. end{axis}
  72. end{tikzpicture}
  73. caption{Auftragung der Messwerte c gegen $kappa$ (grau) und der berechneten Werte (orange)}
  74. end{figure}
  75. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement