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

ex19.rst 1.2 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
  1. .. _example_19:
  2. (19) Color patterns on maps
  3. ---------------------------
  4. GMT 3.1 introduced color patterns and this examples give a few cases
  5. of how to use this new feature. We make a phony poster that advertises
  6. an international conference on GMT in Honolulu. We use
  7. :doc:`grdmath </grdmath>`, :doc:`makecpt </makecpt>`, and
  8. :doc:`grdimage </grdimage>` to draw pleasing color
  9. backgrounds on maps, and overlay
  10. :doc:`coast </coast>` clip paths to have the
  11. patterns change at the coastlines. The middle panel demonstrates a
  12. simple :doc:`coast </coast>` call where the built-in
  13. pattern # 86 is drawn at 100 dpi but with the black and white pixels
  14. replaced with color combinations. At the same time the ocean is filled
  15. with a repeating image of a circuit board (provides in PNG raster
  16. format). The text GMT in the center is an off-line PostScript file
  17. that was overlaid using :doc:`image </image>`. The final panel in the 3 by 1
  18. :doc:`subplot </subplot>` sequence repeats the top panel except that the land and sea images
  19. have changed places.
  20. .. literalinclude:: /_verbatim/ex19.txt
  21. :language: bash
  22. .. figure:: /_images/ex19.*
  23. :width: 500 px
  24. :align: center
  25. Using color patterns and additional PostScript material in illustrations.
Tip!

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

Comments

Loading...