Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. documentclass[border=5mm]{standalone}
  2. usepackage{pgfplots}
  3. pgfplotsset{compat=1.13}
  4. usepgfplotslibrary{colorbrewer}
  5.  
  6. begin{document}
  7. begin{tikzpicture}[yscale=1]
  8. begin{axis}[
  9. domain=-180:180,
  10. samples=50,
  11. colormap/PiYG,
  12. colorbar,
  13. colorbar style={
  14. title=Color key,
  15. ylabel=Z-value,
  16. ytick={-1,-0.75,...,1},
  17. yticklabel style={
  18. text width=2.5em,
  19. align=right,
  20. /pgf/number format/.cd,
  21. fixed,
  22. fixed zerofill
  23. }
  24. }
  25. ]
  26. addplot3 [surf] { cos(x)*cos(y) / 5};
  27. end{axis}
  28. end{tikzpicture}
  29. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement