DegreeLocator¶
- class DegreeLocator(*args, **kwargs)[source]¶
Bases:
matplotlib.ticker.MaxNLocator
A locator for longitude and latitude 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 isFalse
.
Attributes Summary
Methods Summary
bin_boundaries
(vmin, vmax)set_params
(**kwargs)Set parameters for this locator.
Attributes Documentation
- default_params = {'dms': False, 'integer': False, 'min_n_ticks': 2, 'nbins': 8, 'prune': None, 'steps': None, 'symmetric': False}¶
Methods Documentation
- set_params(**kwargs)[source]¶
Set parameters for this locator.
- Parameters
nbins (
int
or'auto'
, optional) – seeMaxNLocator
steps (array-like, optional) – see
MaxNLocator
integer (
bool
, optional) – seeMaxNLocator
symmetric (
bool
, optional) – seeMaxNLocator
prune (
{'lower', 'upper', 'both', None}
, optional) – seeMaxNLocator
min_n_ticks (
int
, optional) – seeMaxNLocator