LongitudeLocator

class LongitudeLocator(*args, **kwargs)[source]

Bases: proplot.ticker.DegreeLocator

A locator for longitude gridlines. Adapted from cartopy.

Parameters

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

Methods Summary

tick_values(vmin, vmax)

Return the values of the located ticks given vmin and vmax.

Methods Documentation

tick_values(vmin, vmax)[source]

Return the values of the located ticks given vmin and vmax.

Note

To get tick locations with the vmin and vmax values defined automatically for the associated axis simply call the Locator instance:

>>> print(type(loc))
<type 'Locator'>
>>> print(loc())
[1, 2, 3, 4]