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

image.rst 1.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
  1. .. index:: ! image
  2. .. include:: module_core_purpose.rst_
  3. *****
  4. image
  5. *****
  6. |image_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt image** *imagefile*
  11. [ |SYN_OPT-B| ]
  12. [ |-D|\ *refpoint* ]
  13. [ |-F|\ *box* ]
  14. [ |-G|\ [*color*][**+b**\|\ **f**\|\ **t**] ]
  15. [ |-I| ]
  16. [ |-J|\ *parameters* ]
  17. [ |-J|\ **z**\|\ **Z**\ *parameters* ]
  18. [ |-M| ]
  19. [ |SYN_OPT-Rz| ]
  20. [ |SYN_OPT-U| ]
  21. [ |SYN_OPT-V| ]
  22. [ |SYN_OPT-X| ]
  23. [ |SYN_OPT-Y| ]
  24. [ |SYN_OPT-p| ]
  25. [ |SYN_OPT-t| ]
  26. [ |SYN_OPT--| ]
  27. .. include:: image_common.rst_
  28. Examples
  29. --------
  30. .. include:: oneliner_info.rst_
  31. To plot the remote image needle.jpg, scaling it be 7 cm wide (height is scaled
  32. accordingly), use::
  33. gmt image @needle.jpg -Dx0/0+w7c -pdf plot
  34. To plot the same file but reversing the bands, use::
  35. gmt image @needle.jpg+b2,1,0 -Dx0/0+w7c -pdf plot
  36. To only plot its red band as gray shade, use::
  37. gmt image @needle.jpg+b0 -Dx0/0+w7c -pdf plot
  38. To include an Encapsulated PostScript file gallo.eps with its upper
  39. right corner 2 inch to the right and 1 inch up from the current
  40. location, and have its width scaled to 3 inches, while keeping the
  41. aspect ratio, use::
  42. gmt image @gallo.eps -Dx2i/1i+jTR+w3i -pdf image
  43. To replicate the 1-bit remote raster image vader1.png, colorize it
  44. (dark gray background and yellow foreground), and setting each of 6 by 12 tiles
  45. to be 2.5 cm wide, use::
  46. gmt image @vader1.png -Gdarkgray+b -Gyellow+f -Dx0/0+w2.5c+n6/12 -pdf image
  47. See Also
  48. --------
  49. :doc:`gmt`,
  50. :doc:`gmtcolors`, :doc:`gmtlogo`
  51. :doc:`legend`, :doc:`colorbar`
  52. :doc:`plot`,
  53. :doc:`psconvert`
Tip!

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

Comments

Loading...