Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. documentclass{standalone}
  2.  
  3. usepackage{tikz}
  4. usetikzlibrary{hobby}
  5. usetikzlibrary{backgrounds}
  6. usetikzlibrary{decorations.markings}
  7. usetikzlibrary{arrows.meta}
  8. tikzset{>=stealth}
  9.  
  10. tikzset{
  11. clockwise arrows/.style={
  12. postaction={
  13. decorate,
  14. decoration={
  15. markings,
  16. mark=between positions 0 and 1 step 40pt with {arrow{>}},
  17. }}}}
  18.  
  19. begin{document}
  20. begin{tikzpicture}[framed]
  21.  
  22. coordinate (B1) at (7,-1);
  23. coordinate (B2) at (7,1);
  24.  
  25. coordinate (A1) at (1,2);
  26. coordinate (A2) at (1,-2);
  27.  
  28. draw[magenta, thick, clockwise arrows] (A1) -- (A2);
  29. draw[magenta, thick, clockwise arrows] (B1) -- (B2);
  30.  
  31. draw[magenta,thick,use Hobby shortcut, clockwise arrows] (B2) .. (4.5,2) .. (3,3) .. (A1);
  32. draw[magenta,thick,use Hobby shortcut, clockwise arrows] (A2) .. (3,-3) .. (4.5,-2) .. (B1);
  33.  
  34. end{tikzpicture}
  35. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement