PyNGL Home > Functions > Graphics routines

Ngl.map

Creates and draws a map.

Prototype

pid = Ngl.map(wks, res=None)

Arguments

wks

The identifier returned from calling Ngl.open_wks.

res=None

An (optional) instance of the Resources class having Map resources as attributes.

Return value

pid

A PlotId of the map plot created is returned.

Description

This function creates and draws a map on the given workstation and advances the frame. Plot options can be set via the res variable. The default map projection is cylindrical equidistant. This can be changed with the mpProjection resource.

Note that PyNGL internally sets some map resources for you, depending on how other resources are set. See the list of default settings for more information.

See Also

Ngl.contour_map, Ngl.streamline_map, Ngl.vector_map

Map resources
Title resources
View resources
Special "ngl" resources

Map resources

Examples

See clmdiv.py (output), coast1.py (output), and map1.py (output).