Guest User

Untitled

a guest
Mar 23rd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{tikz}
  3. usepackage{pgfplots} % loads tikz
  4. pgfplotsset{compat=1.15}
  5. usetikzlibrary{intersections,fillbetween}
  6. begin{document}
  7. begin{tikzpicture}
  8. path[name path = line1, draw] (-1,0) to[out=90,in=90] (1,1) to[out=-90,in=0] (0,-1);
  9. path[name path = line2, draw] (-1,1) -- (1,-1);
  10. draw[very thick, intersection segments={of=line1 and line2,sequence=L2}];
  11. end{tikzpicture}
  12.  
  13. begin{tikzpicture}
  14. path[name path = line1, draw] (-1,0) to[out=90,in=90] (1,1) to[out=-90,in=0] (0,-1);
  15. path[name path = line2, draw] (-1,1) -- (1,-1);
  16. draw[very thick, intersection segments={of=line1 and line2,sequence=L1 R2}];
  17. end{tikzpicture}
  18.  
  19. % The following does not work.
  20. %
  21. % begin{tikzpicture}
  22. % path[name path = line1, draw] (-1,0) to[out=90,in=90] (1,1) to[out=-90,in=0] (0,-1);
  23. % path[name path = line2, draw] (-1,1) -- (1,-1);
  24. % draw[very thick, intersection segments={of=line1 and
  25. % line2,sequence=L2[reverse] R2}];
  26. % end{tikzpicture}
  27.  
  28. end{document}
Add Comment
Please, Sign In to add comment