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
Jstr

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

Rstr 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.

Fbool 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.

Mbool

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