Guest User

Untitled

a guest
Dec 16th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. documentclass[10pt]{book}
  2. usepackage[paperheight=9in,paperwidth=6in,includehead,includefoot,top=0.5in,bottom=0.5in,outer=0.5in,inner=0.75in]{geometry}
  3.  
  4. usepackage{amsfonts}
  5. usepackage{amsmath}
  6. usepackage{pgfplots}
  7. pgfplotsset{compat=1.8}
  8. usepackage{siunitx}
  9. usepackage{nicefrac}
  10. usepackage{tikz}
  11. usepgfplotslibrary{groupplots}
  12. usetikzlibrary{arrows}
  13. usepackage{amsthm}
  14. usepackage{amssymb}
  15. usepackage{mathrsfs}
  16. usepackage[numbers]{natbib}
  17. numberwithin{equation}{section}
  18. usepackage{txfonts}
  19. usepackage{hyphenat}
  20. usepackage[overload]{textcase} % Otherwise $p_t$ gets capitalized
  21. % into $P_T$ in chapter headings,
  22. % which is not desirable
  23. usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=black,citecolor=black,urlcolor=black,plainpages=false,pdfpagelabels]{hyperref}
  24. usepackage[fit]{truncate}
  25. usepackage[toctitles]{titlesec}
  26. usepackage{makeidx}
  27. makeindex
  28. usepackage{url}
  29. usepackage{tocbibind}
  30.  
  31.  
  32. begin{tikzpicture}
  33. begin{groupplot}[]
  34. nextgroupplot[declare function ={fy(x)=sin(x+rand*100)^2;}]
  35. begin{axis} [
  36. xmin=-720, xmax=720,
  37. width=10cm, height=10cm,
  38. tick style=black,
  39. clip mode=individual,
  40. x axis line style={opacity=0},
  41. y axis line style={opacity=0},
  42. ticks=none
  43. ]
  44. end{axis}
  45.  
  46. addplot [
  47. ultra thick,
  48. smooth,
  49. tension=1,
  50. samples=30,
  51. domain=-720:720
  52. ] {fy(x)};
  53.  
  54. draw[latex-latex, xshift=-0.5cm] ({rel axis cs:0,0}|-{rel axis cs:0,0}) -- ({rel axis cs:0,0}|-{rel axis cs:0,1}) node[left, pos=0.5] {$h$};
  55.  
  56.  
  57. end{tikzpicture}
  58.  
  59. ! Package pgfplots Error: Sorry, nested axis environments are not supported. Pl
  60. ease move the inner axis environment below end{axis} and use alignment options
  61. (for example named nodes, see manual) to place it at the desired position.
  62.  
  63. See the pgfplots package documentation for explanation.
  64. Type H <return> for immediate help.
  65. ...
  66.  
  67. l.43 ]
  68.  
  69. ?
Add Comment
Please, Sign In to add comment