Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. RequirePackage{luatex85}
  2. documentclass{article}
  3. usepackage{pgfplots,caption,subcaption,mwe,showframe}
  4.  
  5. pgfplotsset{compat=newest}
  6.  
  7. begin{document}
  8.  
  9. begin{figure}
  10. centering
  11. pgfmathsetlengthmacro{myaxiswidth}{0.33textwidth-width(" 300 ")}% subtract width of widest ticklabel, with a space on each side
  12. begin{subfigure}[t]{0.33textwidth}
  13. begin{tikzpicture}
  14. begin{axis}[enlargelimits=false,width=myaxiswidth, height=0.3textheight, scale only axis]
  15. addplot graphics [xmin=0, xmax=50, ymin=0, ymax=150] {example-image-a};
  16. end{axis}
  17. end{tikzpicture}
  18. end{subfigure}%
  19. %
  20. begin{subfigure}[t]{0.33textwidth}
  21. begin{tikzpicture}
  22. begin{axis}[enlargelimits=false,width=myaxiswidth, height=0.3textheight, scale only axis, ytick=empty]
  23. addplot graphics [xmin=0, xmax=50, ymin=0, ymax=150] {example-image-b};
  24. end{axis}
  25. end{tikzpicture}
  26. end{subfigure}%
  27. %
  28. begin{subfigure}[t]{0.33textwidth}
  29. begin{tikzpicture}
  30. begin{axis}[enlargelimits=false,width=myaxiswidth, height=0.3textheight, scale only axis, ytick=empty]
  31. addplot graphics [xmin=0, xmax=50, ymin=0, ymax=150] {example-image-c};
  32. end{axis}
  33. end{tikzpicture}
  34. end{subfigure}
  35. end{figure}
  36. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement