Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. yticklabels = {0,num{20000}, num{40000}, num{60000}, num{80000}, num{100000},%
  2. num{120000},num{140000},num{160000},num{180000},num{200000}},
  3.  
  4. documentclass[tikz]{standalone}
  5.  
  6. definecolor{maincolorLight}{HTML}{838fbc}
  7. definecolor{maincolorMedium}{HTML}{425b9b}
  8. definecolor{maincolorDark}{HTML}{003d80}
  9.  
  10. usepackage{pgfplots, siunitx}
  11.  
  12. pgfplotsset{
  13. Eksamen1/.style={
  14. scale only axis,
  15. grid=major,
  16. grid style={dashed, gray!50},
  17. axis lines=middle,
  18. inner axis line style={=>},
  19. xlabel={large $x$},
  20. ylabel={large $y$},
  21. yticklabel style={inner ysep=0pt, anchor=south east},
  22. xticklabel style={inner xsep=0pt, anchor=north west},
  23. after end axis/.code={
  24. path (axis cs:0,0)
  25. node [anchor=north west,yshift=-0.075cm] {0}
  26. node [anchor=south east,xshift=-0.075cm] {0};
  27. }
  28. },
  29. }
  30.  
  31. begin{document}
  32.  
  33. begin{tikzpicture}
  34. begin{axis}[
  35. Eksamen1,
  36. ytick={0,2,...,20},
  37. yticklabels = {0,num{20000}, num{40000}, num{60000}, num{80000}, num{100000},%
  38. num{120000},num{140000},num{160000},num{180000},num{200000}},
  39. xtick={0,1,...,8},
  40. ymin=-.1,
  41. ymax=23,
  42. xmin=-.1,
  43. xmax=9,
  44. domain = 0:8,
  45. ]
  46. addplot[color=maincolorMedium!30!white,thick,samples=50] {20-2*x} node[above,pos=1] {$g$};
  47. addplot[color=maincolorMedium,thick,samples=50] {20*e^(-0.2*x)} node[below,pos=0.5] {$h$};
  48. addplot[color=maincolorMedium!30!black,thick,samples=50] {20*0.9^x} node[above,pos=0.6] {$f$};
  49. node[] at (axis cs: 2.5,21) {bilens verdi (kroner)};
  50. node[] at (axis cs: 7,1.5) {AA r etter 2017};
  51. end{axis}
  52. end{tikzpicture}
  53.  
  54. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement