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

gmtlogo_common.rst_ 3.5 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
82
83
84
  1. |No-spaces|
  2. Description
  3. -----------
  4. This module plots the GMT logo on a map. By default, the GMT logo is 144 points (2 inches wide) and 72 points (1 inch) high and will be
  5. positioned relative to the current plot origin. Use various options to change this and to place a
  6. transparent or opaque rectangular map panel behind the GMT logo.
  7. Required Arguments
  8. ------------------
  9. None.
  10. Optional Arguments
  11. ------------------
  12. .. _-D:
  13. **-D**\ [**g**\|\ **j**\|\ **J**\|\ **n**\|\ **x**]\ *refpoint*\ **+w**\ *width*\ [**+j**\ *justify*]\ [**+o**\ *dx*\ [/*dy*]]
  14. Sets reference point on the map for the image using one of four coordinate systems:
  15. (1) Use **-Dg** for map (user) coordinates, (2) use **-Dj** or **-DJ** for setting *refpoint* via
  16. a 2-char justification code that refers to the (invisible) map domain rectangle,
  17. (3) use **-Dn** for normalized (0-1) coordinates, or (4) use **-Dx** for plot coordinates
  18. (inches, cm, etc.). All but **-Dx** requires both **-R** and **-J** to be specified.
  19. Use **+w**\ *width* to set the width of the GMT logo in plot coordinates
  20. (inches, cm, etc.).
  21. By default, the anchor point on the GMT logo is assumed to be the bottom left corner (BL), but this
  22. can be changed by appending **+j** followed by a 2-char justification code *justify* (see :doc:`text`).
  23. **Note**: If **-Dj** is used then *justify* defaults to the same as *refpoint*,
  24. if **-DJ** is used then *justify* defaults to the mirror opposite of *refpoint*.
  25. Add **+o** to offset the GMT logo by *dx*/*dy* away from the *refpoint* point in
  26. the direction implied by *justify* (or the direction implied by **-Dj** or **-DJ**).
  27. .. _-F:
  28. **-F**\ [**+c**\ *clearances*][**+g**\ *fill*][**+i**\ [[*gap*/]\ *pen*]][**+p**\ [*pen*]][**+r**\ [*radius*]][**+s**\ [[*dx*/*dy*/][*shade*]]]
  29. Without further options, draws a rectangular border around the GMT logo using
  30. :term:`MAP_FRAME_PEN`; specify a different pen with **+p**\ *pen*.
  31. Add **+g**\ *fill* to fill the GMT logo box [no fill].
  32. Append **+c**\ *clearance* where *clearance* is either *gap*, *xgap*\ /\ *ygap*,
  33. or *lgap*\ /\ *rgap*\ /\ *bgap*\ /\ *tgap* where these items are uniform, separate in
  34. x- and y-direction, or individual side spacings between GMT logo and border.
  35. Append **+i** to draw a secondary, inner border as well. We use a uniform
  36. *gap* between borders of 2\ **p** and the :term:`MAP_DEFAULT_PEN`
  37. unless other values are specified. Append **+r** to draw rounded
  38. rectangular borders instead, with a 6\ **p** corner radius. You can
  39. override this radius by appending another value. Finally, append
  40. **+s** to draw an offset background shaded region. Here, *dx*/*dy*
  41. indicates the shift relative to the foreground frame
  42. [4\ **p**/-4\ **p**] and *shade* sets the fill style to use for shading [gray50].
  43. .. _-R:
  44. .. |Add_-R| unicode:: 0x20 .. just an invisible code
  45. .. include:: explain_-R.rst_
  46. .. |Add_-Rz| unicode:: 0x20 .. just an invisible code
  47. .. include:: explain_-Rz.rst_
  48. .. _-S:
  49. **-S**\ [**l**\|\ **n**\|\ **u**]
  50. Control what is written beneath the map portion of the logo.
  51. Append **l** (or skip **-S** entirely) to plot the text label "The Generic Mapping Tools"
  52. beneath the logo. Append **n** to skip the label placement, and append
  53. **u** to place the URL to the GMT site instead [plot the label].
  54. .. _-U:
  55. .. include:: explain_-U.rst_
  56. .. _-V:
  57. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  58. .. include:: explain_-V.rst_
  59. .. _-X:
  60. .. include:: explain_-XY.rst_
  61. .. include:: explain_-t.rst_
  62. .. include:: explain_help.rst_
Tip!

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

Comments

Loading...