Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. documentclass[tikz,border={12pt,12pt}]{standalone}
  2. usepackage{pgfplots}
  3. usetikzlibrary{plotmarks}
  4. pgfplotsset{compat=newest}
  5. begin{document}
  6. begin{tikzpicture}
  7.  
  8. begin{axis}[hide axis,colorbar,colormap/jet,
  9. colorbar style={yshift=-2cm,
  10. xtick={18,22,26,30,34,38,42,45},
  11. xticklabel={18,22,26,30,34,38,42,45},
  12. rotate=270,
  13. yticklabel pos=left,
  14. yticklabel style={anchor=south},},
  15. ]
  16. {
  17. };
  18. end{axis}
  19. end{tikzpicture}
  20.  
  21. end{document}
  22.  
  23. documentclass{standalone}
  24. usepackage{pgfplots}
  25. begin{document}
  26. begin{tikzpicture}
  27. begin{axis}[
  28. hide axis,
  29. scale only axis,
  30. height=0pt,
  31. width=0pt,
  32. colormap/jet,
  33. colorbar horizontal,
  34. point meta min=18,
  35. point meta max=45,
  36. colorbar style={
  37. width=10cm,
  38. xtick={18,20,25,...,45}
  39. }]
  40. addplot [draw=none] coordinates {(0,0)};
  41. end{axis}
  42. end{tikzpicture}
  43.  
  44. end{document}
  45.  
  46. documentclass{standalone}
  47. usepackage{pgfplots}
  48. begin{document}
  49. begin{tikzpicture}
  50. pgfplotscolorbardrawstandalone[
  51. colormap/jet,
  52. colorbar horizontal,
  53. point meta min=18,
  54. point meta max=45,
  55. colorbar style={
  56. width=10cm,
  57. xtick={18,20,25,...,45}}]
  58. end{tikzpicture}
  59.  
  60. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement