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

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

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

Comments

Loading...