Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

colorbar.rst 1.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  1. .. index:: ! colorbar
  2. .. include:: module_core_purpose.rst_
  3. ********
  4. colorbar
  5. ********
  6. |colorbar_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt colorbar**
  11. [ |SYN_OPT-B| ]
  12. [ |-C|\ *cpt* ]
  13. [ |-D|\ *refpoint* ]
  14. [ |-F|\ *panel* ]
  15. [ |-G|\ *zlo*\ /\ *zhi* ]
  16. [ |-I|\ [*max\_intens*\|\ *low_i*/*high_i*] ]
  17. [ |-J|\ *parameters* ]
  18. [ |-J|\ **z**\|\ **Z**\ *parameters* ]
  19. [ |-L|\ [**i**][*gap*] ]
  20. [ |-M| ]
  21. [ |-N|\ [**p**\|\ *dpi* ]]
  22. [ |-Q| ]
  23. [ |SYN_OPT-R| ]
  24. [ |-S|\ [**+c**\|\ **n**\ ][**+s**] ]
  25. [ |SYN_OPT-U| ]
  26. [ |SYN_OPT-V| ]
  27. [ |-W|\ *scale* ]
  28. [ |SYN_OPT-X| ]
  29. [ |SYN_OPT-Y| ]
  30. [ |-Z|\ *zfile* ]
  31. [ |SYN_OPT-p| ]
  32. [ |SYN_OPT-t| ]
  33. [ |SYN_OPT--| ]
  34. .. include:: colorbar_common.rst_
  35. Examples
  36. --------
  37. .. include:: oneliner_info.rst_
  38. To plot a horizontal color scale (12 cm long; 0.5 cm wide) at the reference point (8,1)
  39. (paper coordinates) with justification at top center and automatic annotation interval, do
  40. ::
  41. gmt begin map
  42. gmt makecpt -T-200/1000/100 -Crainbow
  43. gmt colorbar -Dx8c/1c+w12c/0.5c+jTC+h -Bxaf+l"topography" -By+lkm
  44. gmt end show
  45. To append a vertical color scale (7.5 cm long; 1.25 cm wide) to the
  46. right of a plot that is 6 inch wide and 4 inch high, using illumination,
  47. and show back- and foreground colors, and annotating every 5 units, we
  48. provide the reference point and select the left-mid anchor point via
  49. ::
  50. gmt colorbar -Dx6.5i+jLM/2i+w7.5c/1.25c+e -Ccolors.cpt -I -Bx5+lBATHYMETRY -By+lm
  51. To overlay a horizontal color scale (4 inches long and default width) above a
  52. Mercator map produced by a previous call, ensuring a 2 cm offset from the map frame, use
  53. ::
  54. gmt colorbar -DjCT+w4i+o0/2c+h -Ccolors.cpt -Baf
  55. .. include:: colorbar_notes.rst_
  56. See Also
  57. --------
  58. :doc:`gmt`, :doc:`makecpt`
  59. :doc:`gmtlogo`, :doc:`grd2cpt`
  60. :doc:`image`, :doc:`legend`
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...