Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. begin{tikzpicture}
  2. begin{axis}[width=0.45textwidth]
  3. %small plot
  4. end{axis}
  5. begin{axis}[width=textwidth]
  6. %large plot
  7. end{axis}
  8. end{tikzpicture}
  9.  
  10. documentclass{article}
  11. usepackage{pgfplots}
  12.  
  13. begin{document}
  14.  
  15. begin{tikzpicture}
  16. begin{axis}[xshift=.5textwidth,yshift=2cm,width=0.45textwidth]
  17. %small plot
  18. end{axis}
  19. begin{axis}[width=textwidth]
  20. %large plot
  21. end{axis}
  22. end{tikzpicture}
  23.  
  24. end{document}
  25.  
  26. documentclass{article}
  27. usepackage{pgfplots}
  28. usetikzlibrary{spy}
  29. begin{document}
  30.  
  31. begin{tikzpicture}[spy using outlines={rectangle, magnification=3,connect spies}]
  32. begin{axis}[grid=major,no markers,domain=-5:5,enlargelimits=false]
  33. addplot {x^2};
  34. addplot {x^3};
  35.  
  36. coordinate (spypoint) at (axis cs:0,0);
  37. coordinate (spyviewer) at (axis cs:0.5,-90);
  38. spy[width=6cm,height=1cm] on (spypoint) in node [fill=white] at (spyviewer);
  39. end{axis}
  40.  
  41. end{tikzpicture}
  42.  
  43. end{document}
  44.  
  45. documentclass{standalone}
  46. usepackage{pgfplots}
  47. begin{document}
  48. begin{tikzpicture}[remember picture]
  49. begin{axis}[width=textwidth]
  50. %large plot
  51. addplot {x^3};
  52. coordinate (insetPosition) at (rel axis cs:0.95,0.05);
  53. end{axis}
  54. begin{axis}[at={(insetPosition)},anchor={outer south east},footnotesize]
  55. %small plot
  56. addplot {2*x};
  57. end{axis}
  58. end{tikzpicture}
  59. end{document}
  60.  
  61. coordinate (insetPosition) at (axis cs:5:-140);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement