Guest User

Untitled

a guest
Oct 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. documentclass[border=10pt]{standalone}
  2. usepackage{unicode-math}
  3. setmainfont{XITS}
  4. setmathfont{XITS Math}
  5. usepackage{pgfplots}
  6. usepackage{mathrsfs}
  7. pgfplotsset{compat=1.16}
  8. usetikzlibrary{intersections}
  9. usepgfplotslibrary{fillbetween}
  10. begin{document}
  11. begin{tikzpicture}
  12. [extended line/.style={shorten >=-#1,shorten <=-#1},
  13. /pgf/declare function={f(x)= exp(x);},
  14. /pgf/declare function={g(x)= x+1;}]
  15. begin{axis}[
  16. x=1.5cm,y=1.5cm,
  17. xtick={-4,...,4},ytick={-1,...,6},
  18. ymin=-2,ymax=7,xmin=-5,xmax=5,
  19. axis on top=false,
  20. enlargelimits=false,
  21. axis x line=middle,
  22. axis y line=middle,
  23. tick align=outside,
  24. tickwidth=0.12cm,
  25. xticklabels={empty,empty,empty,empty,0,1,empty,empty,empty},
  26. yticklabels={empty,0,1,empty,empty,empty,empty,empty},
  27. major tick style = {thick, black},
  28. axis line style = ultra thick,
  29. extra x ticks={-5,5},
  30. extra x tick label={null},
  31. extra y ticks={-2,7},
  32. extra y tick label={null},
  33. extra tick style={tick style={draw=none}},
  34. xlabel=,ylabel=,
  35. every axis x label/.style=
  36. {
  37. at={(ticklabel* cs:1)},
  38. anchor=west
  39. },
  40. every axis y label/.style=
  41. {
  42. at={(ticklabel* cs:1)},
  43. anchor=south
  44. },
  45. >=stealth,
  46. samples=2000,
  47. grid=none]
  48.  
  49. addplot [thick,domain=-5:5] {g(x)};
  50. addplot [thick,domain=-5:5] {f(x)};
  51.  
  52. draw[thick,->] (0,1) -- (1,1);
  53. draw[thick,->] (1,1) -- (1,2);
  54.  
  55. node[below] at (0.5,1) {$Delta x=1$};
  56. node[right] at (1,1.5) {$Delta y=1$};
  57.  
  58. node[right,black] at (1.5,{f(1.5)}) {$mathcal{C}_{x,longmapsto , {rm e}^x}$};
  59.  
  60. node[below left] at (0,0) {0};
  61.  
  62. end{axis}
  63. end{tikzpicture}
  64. end{document}
Add Comment
Please, Sign In to add comment