Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. documentclass[preview]{standalone}
  2. usepackage{tikz}
  3. usepackage{pgfplots}
  4. usepackage{graphicx, float}
  5. usepackage{subcaption}
  6.  
  7. deffigone{%
  8. begin{tikzpicture}
  9. begin{axis}[%
  10. width = 1.2textwidth,
  11. height = textwidth,
  12. grid = both,
  13. xtick distance = 1,
  14. ymin = 0,
  15. ymax = 2,
  16. ytick distance = 0.4,
  17. xlabel = $t/tau$,
  18. ylabel = $V/V$
  19. ]
  20. addplot[red, ultra thick]{exp(x)};
  21. end{axis}
  22. end{tikzpicture}
  23. }
  24.  
  25. deffigtwo{%
  26. begin{tikzpicture}
  27. begin{axis}[%
  28. width = 1.2textwidth,
  29. height = textwidth,
  30. grid = both,
  31. xtick distance = 1,
  32. ymin = 0,
  33. ymax = 2,
  34. ytick distance = 0.4,
  35. yticklabels={,,},
  36. xlabel = $t/tau$
  37. ]
  38. addplot[blue, ultra thick]{exp(2*x)};
  39. end{axis}
  40. end{tikzpicture}
  41. }
  42.  
  43.  
  44. begin{document}
  45.  
  46. begin{figure}[ht]
  47. centering
  48. begin{subfigure}[t]{0.45textwidth}
  49. figone
  50. end{subfigure}
  51. hspace{5.5mm}
  52. begin{subfigure}[t]{0.45textwidth}
  53. figtwo
  54. end{subfigure}
  55. caption{Caption}
  56. label{fig:my_label}
  57. end{figure}
  58.  
  59.  
  60.  
  61.  
  62.  
  63. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement