pygmt.Figure.image

Figure.image(self, imagefile, **kwargs)

Place images or EPS files on maps.

Reads an Encapsulated PostScript file or a raster image file and plots it on a map.

Full option list at https://www.generic-mapping-tools.org/gmt/latest/image.html

Aliases:

  • J = projection
  • R = region
Parameters:
J : str

Required if this is the first plot command. Select map projection.

R : str or list

Required if this is the first plot command. 'xmin/xmax/ymin/ymax[+r][+uunit]'. Specify the region of interest.

D: str

'[g|j|J|n|x]refpoint+rdpi+w[-]width[/height][+jjustify][+nnx[/ny]][+odx[/dy]]' Sets reference point on the map for the image.

F : bool or str

'[+cclearances][+gfill][+i[[gap/]pen]][+p[pen]][+r[radius]][+s[[dx/dy/][shade]]]' Without further options, draws a rectangular border around the image using MAP_FRAME_PEN.

M : bool

Convert color image to monochrome grayshades using the (television) YIQ-transformation.