File: matplotlib.rst

package info (click to toggle)
python-cartopy 0.21.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 14,668 kB
  • sloc: python: 15,101; makefile: 166; javascript: 66; sh: 6
file content (75 lines) | stat: -rw-r--r-- 1,902 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.. _api.mpl:

Matplotlib interface (cartopy.mpl)
----------------------------------

Cartopy extends some Matplotlib capabilities to handle geographic
projections, such as non-rectangular axes and spines.

.. currentmodule:: cartopy.mpl

Geoaxes
~~~~~~~

The most primitive extension is the :class:`cartopy.mpl.geoaxes.GeoAxes` class, which
extends a Matplotlib Axes and adds a `transform` keyword
argument to many plotting methods to enable geographic projections and boundary wrapping
to occur on the axes.

.. autosummary::
    :toctree: generated/
    :template: autosummary/class_without_inherited.rst

    geoaxes.GeoAxes
    geoaxes.GeoAxesSubplot
    geoaxes.GeoSpine
    geoaxes.InterProjectionTransform


.. currentmodule:: cartopy.mpl

Gridlines and ticks
~~~~~~~~~~~~~~~~~~~

Cartopy can produce gridlines and ticks in any projection and add
them to the current geoaxes projection, providing a way to add detailed
location information to the plots.

.. autosummary::
    :toctree: generated/
    :template: autosummary/class_without_inherited.rst
    
    gridliner.Gridliner
    ticker.LongitudeFormatter
    ticker.LatitudeFormatter
    ticker.LongitudeLocator
    ticker.LatitudeLocator

Artist extensions
~~~~~~~~~~~~~~~~~

Features and images can be added to a :class:`cartopy.mpl.geoaxes.GeoAxes` through
an extension of the Matplotlib Artist interfaces.

.. autosummary::
    :toctree: generated/
    :template: autosummary/class_without_inherited.rst

    feature_artist.FeatureArtist
    slippy_image_artist.SlippyImageArtist

.. currentmodule:: cartopy.mpl

Additional extensions
~~~~~~~~~~~~~~~~~~~~~

Extra functionality that is primarily intended for developers. They describe
some of the capabilities for transforming
between GEOS, Shapely, and Matplotlib paths.

.. autosummary::
    :toctree: generated/

    patch.geos_to_path
    patch.path_segments
    patch.path_to_geos