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

plot3d_notes.rst_ 2.7 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
  1. Segment Header Parsing
  2. ----------------------
  3. Segment header records may contain one of more of the following options:
  4. **-G**\ *fill*
  5. Use the new *fill* and turn filling on
  6. **-G-**
  7. Turn filling off
  8. **-G**
  9. Revert to default fill (none if not set on command line)
  10. **-W**\ *pen*
  11. Use the new *pen* and turn outline on
  12. **-W**
  13. Revert to default pen :term:`MAP_DEFAULT_PEN`
  14. (if not set on command line)
  15. **-W-**
  16. Turn outline off
  17. **-Z**\ *zval*
  18. Obtain fill via cpt lookup using z-value *zval*
  19. **-Z**\ *NaN*
  20. Get the NaN color from the CPT
  21. Custom Symbols
  22. --------------
  23. We allow users to define and plot their own custom symbols. This
  24. is done by encoding the symbol using our custom symbol macro code
  25. described in Appendix N. Put all the macro codes for your new symbol in
  26. a file whose extension must be .def; you may then address the symbol
  27. without giving the extension (e.g., the symbol file tsunami.def is used
  28. by specifying **-Sk**\ *tsunami/size*. The definition file can contain
  29. any number of plot code records, as well as blank lines and comment
  30. lines (starting with #). The module will look for the definition files
  31. in (1) the current directory, (2) the ~/.gmt directory,
  32. and (3) the **$GMT_SHAREDIR**/custom directory, in that
  33. order. Freeform polygons (made up of straight line segments and arcs of
  34. circles) can be designed - these polygons can be painted and filled with
  35. a pattern. Other standard geometric symbols can also be used. See Appendix
  36. :ref:`App-custom_symbols` for macro definitions.
  37. Bezier spline
  38. -------------
  39. The **+s** modifier to pen settings (**-W**) is limited to plotting lines and
  40. polygons. Lines with embellishments (fronts, decorated, or quoted lines) are
  41. excluded.
  42. Auto-Legend
  43. -----------
  44. The **-l** option for symbols expects the symbol color, size, and type to be given
  45. on the command line. If you have variable symbol sizes then you must append **+s**\ *size* to set
  46. a suitable size for the legend entry. For other symbol cases the **-l** option will
  47. be ignored. Legend entries also work for lines and polygons, but not more complicated
  48. features such as decorated and quoted lines, fronts, etc.
  49. Bugs
  50. ----
  51. No hidden line removal is employed for polygons and lines. Symbols,
  52. however, are first sorted according to their distance from the viewpoint
  53. so that nearby symbols will overprint more distant ones should they
  54. project to the same x,y position.
  55. The module cannot handle filling of polygons that contain the south or
  56. north pole. For such a polygon, make a copy and split it into two and
  57. make each explicitly contain the polar point. The two polygons will
  58. combine to give the desired effect when filled; to draw outline use the
  59. original polygon.
Tip!

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

Comments

Loading...