LongitudeFormatter

class LongitudeFormatter(lon0=0, *args, **kwargs)[source]

Bases: _CartopyFormatter, LongitudeFormatter

Format longitude gridline labels. Adapted from cartopy.mpl.ticker.LongitudeFormatter with support for proper centering based on lon0.

Parameters:

lon0 (float, optional) – Central longitude value to use for centering the map. Labels will be adjusted relative to this value.

Parameters:

dms (bool, default: False) – Locate the ticks on clean degree-minute-second intervals and format the ticks with minutes and seconds instead of decimals.