Guest User

Untitled

a guest
Dec 15th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. documentclass[tikz, border=1cm]{standalone}
  2. usepackage{ pgfplots}
  3. usetikzlibrary{decorations.text, decorations.markings}
  4. usetikzlibrary{intersections}
  5. usetikzlibrary{arrows}
  6.  
  7. pgfplotsset{
  8. every axis label/.append style={font=small},
  9. compat=newest,
  10. }
  11.  
  12.  
  13. begin{document}
  14. begin{tikzpicture}[xscale=1,yscale=1]
  15. pgfmathsetmacro{ea}{1.5}
  16. pgfmathsetmacro{eb}{1}
  17. draw[red, samples=200, smooth] plot[id=curve, raw gnuplot] function{
  18. f(x,y) = (0.3 + ((ea-eb)/(ea+2*eb))/(x**2 + y**2))*y ;
  19. set xrange [-4:4];
  20. set yrange [-2:2];
  21. set view 0,0;
  22. set isosample 1000,1000;
  23. set cntrparam levels 50;
  24. set cont base;
  25. unset surface;
  26. splot f(x,y)
  27. } ;
  28. fill[gray!50, draw=blue, thick] (0,0) circle (1.01);
  29.  
  30. clip (0,0) circle (1);
  31. foreach i in {-0.9,-0.675,...,1} {
  32. draw[red, decoration={
  33. markings,
  34. mark=at position 0.5 with {arrow{latex'}}}, postaction={decorate}] (-1,i) -- (1,i);
  35. }
  36. end{tikzpicture}
  37. end{document}
Add Comment
Please, Sign In to add comment