pygmt.Figure.coast

Figure.coast(self, **kwargs)

Plot continents, shorelines, rivers, and borders on maps

Plots grayshaded, colored, or textured land-masses [or water-masses] on maps and [optionally] draws coastlines, rivers, and political boundaries. Alternatively, it can (1) issue clip paths that will contain all land or all water areas, or (2) dump the data to an ASCII table. The data files come in 5 different resolutions: (f)ull, (h)igh, (i)ntermediate, (l)ow, and (c)rude. The full resolution files amount to more than 55 Mb of data and provide great detail; for maps of larger geographical extent it is more economical to use one of the other resolutions. If the user selects to paint the land-areas and does not specify fill of water-areas then the latter will be transparent (i.e., earlier graphics drawn in those areas will not be overwritten). Likewise, if the water-areas are painted and no land fill is set then the land-areas will be transparent.

A map projection must be supplied.

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

Aliases:

  • A = area_thresh

  • B = frame

  • D = resolution

  • G = land

  • I = rivers

  • J = projection

  • N = borders

  • R = region

  • S = water

  • W = shorelines

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.

Aint, float, or str

'min_area[/min_level/max_level][+ag|i|s|S][+r|l][+ppercent]' Features with an area smaller than min_area in km^2 or of hierarchical level that is lower than min_level or higher than max_level will not be plotted.

Bstr

Set map boundary frame and axes attributes.

Cstr

Set the shade, color, or pattern for lakes and river-lakes.

Dstr

Selects the resolution of the data set to use ((f)ull, (h)igh, (i)ntermediate, (l)ow, and (c)rude).

Gstr

Select filling or clipping of “dry” areas.

Istr

'river[/pen]' Draw rivers. Specify the type of rivers and [optionally] append pen attributes.

Nstr

'border[/pen]' Draw political boundaries. Specify the type of boundary and [optionally] append pen attributes

Sstr

Select filling or clipping of “wet” areas.

Ubool or str

Draw GMT time stamp logo on plot.

Wstr

'[level/]pen' Draw shorelines [Default is no shorelines]. Append pen attributes.