daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 35 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[a4paper,11pt,oneside,onecolumn]{article}
  2. usepackage{pgfplots}
  3. usetikzlibrary{pgfplots.groupplots}
  4. begin{document}
  5. begin{center}
  6. begin{tikzpicture}[baseline]
  7. begin{axis}[
  8. axis y line=left,
  9. axis x line=bottom,
  10. grid=none,
  11. xmin=0,xmax=0.8,
  12. ymin=0,ymax=1.2,
  13. xlabel=$frac{PX}{E^2}$,ylabel=$frac{QX}{E^2}$,
  14. width=0.9columnwidth,
  15. height=0.45columnwidth,
  16. xtick={0,0.2,...,0.8},
  17. ytick={0,0.2,...,1.2},
  18. anchor=center,
  19. y tick label style={
  20.     /pgf/number format/.cd,
  21.     fixed,
  22.     fixed zerofill,
  23.     precision=1,
  24.     /tikz/.cd
  25. },
  26. x tick label style={
  27.     /pgf/number format/.cd,
  28.     fixed,
  29.     fixed zerofill,
  30.     precision=1,
  31.     /tikz/.cd
  32. }
  33. ]
  34. foreach tf in {
  35.     -0.2,
  36.     0,
  37.     0.2%
  38. } {%
  39.     addplot[domain=0:0.8,samples=2000
  40.     ] {sqrt(1/2-x*tf+sqrt(1/4-x^2-x*tf))} node[right] {$tanphi=$tf} ;
  41.     addplot[domain=0:0.8,samples=2000
  42.     ] {sqrt(1/2-x*tf-sqrt(1/4-x^2-x*tf))} ;
  43. }
  44. end{axis}
  45. end{tikzpicture}
  46. end{center}
  47. end{document}
  48.    
  49. Undefined control sequence. end{axis}
  50. Undefined control sequence. end{axis}
  51. Undefined control sequence. end{axis}
RAW Paste Data
Top