SHARE
TWEET

Untitled

a guest Mar 20th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. begin{axis}[
  2.     mesh/interior colormap name=hot,
  3.     colormap={slategraywhite}{rgb255=(112,128,144) rgb255=(255,159,101)},
  4.  ]
  5.    
  6. pgfplotsset{%
  7.     colormap={slategraywhite}{rgb255=(112,128,144) rgb255=(255,159,101)}%
  8. }%
  9.    
  10. documentclass[border=2pt]{standalone}
  11.  
  12. usepackage{pgfplots}
  13. usepgfplotslibrary{colormaps}%
  14.  
  15. begin{document}
  16. begin{tikzpicture}
  17. begin{axis}[
  18.     hide axis,
  19.     xlabel=$x$,ylabel=$y$,
  20.     mesh/interior colormap name=hot,
  21.     colormap={slategraywhite}{rgb255=(112,128,144) rgb255=(255,159,101)},% <--- This works fine.
  22.  ]
  23.   addplot3 [domain=-1.5:1.5,surf, shader=faceted] {-exp(-x^2-y^2)};
  24. end{axis}
  25. end{tikzpicture}%
  26. end{document}
  27.    
  28. usepackage{pgfplots}
  29. usepgfplotslibrary{colormaps}%
  30.  
  31. pgfplotsset{%
  32.     colormap={slategraywhite}{rgb255=(112,128,144) rgb255=(255,159,101)}%
  33. }%    
  34. pgfplotsset{colormap/slategraywhite}% <-- activate colormap
  35. pgfplotsset{colormap/blackwhite}
  36.  
  37. begin{document}
  38. begin{tikzpicture}
  39. begin{axis}[
  40.     hide axis,
  41.     xlabel=$x$,ylabel=$y$,
  42.     mesh/interior colormap name=hot,
  43.     colormap/slategraywhite,%         <--- How do I get this working.
  44.  ]
  45.   addplot3 [domain=-1.5:1.5,surf, shader=faceted] {-exp(-x^2-y^2)};
  46. end{axis}
  47. end{tikzpicture}%
  48. end{document}
RAW Paste Data
Top