Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. documentclass[11pt,a4paper]{article}
  2. usepackage{tikz}
  3.  
  4. begin{document}
  5.  
  6. begin{tikzpicture}[scale=1];
  7.  
  8. draw (0,0) ellipse (5 and 3);
  9.  
  10. end{tikzpicture}
  11.  
  12. end{document}
  13.  
  14. x = a*cosh(t)
  15. y = b*sinh(t)
  16.  
  17. documentclass[11pt,a4paper]{article}
  18. usepackage{tikz}
  19. usepackage{pgfplots}
  20.  
  21.  
  22.  
  23.  
  24. pgfplotsset{compat=1.12,
  25. grid=none,
  26. axis lines=none,
  27. width=8cm,
  28. height=8cm,
  29. scale only axis,
  30. }
  31. begin{document}
  32.  
  33.  
  34. begin{tikzpicture}[scale=1];
  35.  
  36. %draw (0,0) ellipse (5 and 3);
  37. begin{axis}
  38. addplot[samples=201,domain=-1:1,variable=t]({2*cosh(t)},{1*sinh(t)});
  39. addplot[samples=201,domain=-1:1,variable=t]({-2*cosh(t)},{1*sinh(t)}); % left hyperbolic branch
  40.  
  41. addplot[samples=201,domain=0:360,variable=t]({5*cos(t)},{3*sin(t)}); % Draw the ellipse
  42.  
  43. end{axis}
  44.  
  45. end{tikzpicture}
  46.  
  47. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement