Guest User

Untitled

a guest
Dec 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. documentclass[11pt,a4paper]{article}
  2. usepackage{geometry}
  3. usepackage{tikz}
  4. usepackage{pgfplots, relsize}
  5. usepgfplotslibrary{polar}
  6. usepgflibrary{shapes.geometric}
  7. usetikzlibrary{calc}
  8.  
  9. usetikzlibrary{arrows,decorations.markings}
  10. begin{document}
  11.  
  12. begin{center}
  13. begin{tikzpicture}
  14. begin{axis}[
  15. unit vector ratio*=1 1 1,
  16. grid = none,
  17. axis x line = middle,
  18. axis y line = middle,
  19. xlabel={$k_t$},
  20. xlabel style={at=(current axis.right of origin), anchor=west},
  21. ylabel={$k_{t+1}$},
  22. ylabel style={at=(current axis.above origin), anchor=south},
  23. xmin = 0,
  24. xmax = 15,
  25. scale=1.5,
  26. enlarge y limits={rel=0.13},
  27. enlarge x limits={rel=0.07},
  28. ymin = 0,
  29. ymax = 10, xtick=empty,ytick=empty,
  30. after end axis/.code={path (axis cs:0,0) node [anchor=north west] {0};},
  31. ]
  32. coordinate (0,0) ;
  33. % domain can be set individually!!
  34. addplot[color=red, domain=0:10,samples=100,smooth,thick] {x} node[above,pos=1] {$45^circ$};
  35. addplot[color=blue,domain=0:11,samples=1000,smooth, thick] {3*sqrt(x)} node[right,pos=1] {$W(s,k_{t},delta)$};
  36. addplot[color=Cerulean,domain=0:11,samples=1000,smooth, thick] {2*sqrt(x)} node[right,pos=1] {$W(s',k_{t},delta)$};
  37.  
  38. addplot[mark=*,only marks, fill=white] coordinates {(9,9)} node[above, pos=1]{$A$};
  39. addplot[mark=*,only marks, fill=white] coordinates {(4,4)} node[above, pos=1]{$A'$};
  40.  
  41. addplot[mark=*,only marks, fill=white] coordinates {(9,6)} node[below, pos=1]{$A_1$};
  42. addplot[mark=*,only marks, fill=white] coordinates {(6,6)} node[above, pos=1]{$A_2$};
  43. addplot[mark=*,only marks, fill=white] coordinates {(6,4.899)} node[below, pos=1]{$A_3$};
  44. addplot[mark=*,only marks, fill=white] coordinates {(4.899,4.899)} node[above, pos=1]{$A_4$};
  45.  
  46. % NO output shown at all
  47. node (A) at (9, 9){};
  48. node (Ap) at (4, 4){};
  49. node (A1) at (9, 6){};
  50. node (A2) at (6, 6){};
  51. node (A3) at (6, 4.899){};
  52. node (A4) at (4.899, 4.899){};
  53. draw [dashed] (A) -- (A1) -- (A2) -- (A3) -- (A4);
  54. end{axis}
  55.  
  56. end{tikzpicture}
  57. end{center}
  58. end{document}
Add Comment
Please, Sign In to add comment