File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 17
17
.. rubric :: Methods Summary
18
18
19
19
.. autosummary ::
20
+ :toctree:
20
21
{% for item in methods %}
21
22
{% if item != '__init__' %}
22
23
{{ objname }}.{{ item }}
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ Miscellaneous
221
221
222
222
which
223
223
show_versions
224
+ pygmt.src.clip.ClipAccessor
224
225
225
226
Datasets
226
227
--------
Original file line number Diff line number Diff line change 8
8
from tempfile import TemporaryDirectory
9
9
from typing import Literal , overload
10
10
11
- from pygmt .src import clip
11
+ from pygmt .src . clip import ClipAccessor
12
12
from pygmt ._typing import PathLike
13
13
14
14
try :
@@ -139,15 +139,13 @@ def region(self) -> np.ndarray:
139
139
return wesn
140
140
141
141
@property
142
- def clip (self ) -> clip :
142
+ def clip (self ) -> ClipAccessor :
143
143
"""
144
144
Set up a clipping path.
145
145
146
- - :meth:`pygmt.Figure.clip.land`
147
- - :meth:`pygmt.Figure.clip.water`
148
- - :meth:`pygmt.Figure.clip.polygon`
146
+ :class:`pygmt.src.clip.ClipAccessor`
149
147
"""
150
- return clip ()
148
+ return ClipAccessor ()
151
149
152
150
def savefig (
153
151
self ,
Original file line number Diff line number Diff line change 5
5
from pygmt .src .basemap import basemap
6
6
from pygmt .src .binstats import binstats
7
7
from pygmt .src .blockm import blockmean , blockmedian , blockmode
8
- from pygmt .src .clip import clip
9
8
from pygmt .src .coast import coast
10
9
from pygmt .src .colorbar import colorbar
11
10
from pygmt .src .config import config
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def _clip_method(clip_type):
19
19
return "coast"
20
20
21
21
22
- class clip : # noqa: N801
22
+ class ClipAccessor :
23
23
"""
24
24
Clip.
25
25
"""
@@ -33,6 +33,11 @@ def __init__(self):
33
33
def polygon (self , x , y ):
34
34
"""
35
35
Clip the data to a polygon.
36
+
37
+ Parameters
38
+ ----------
39
+ x/y
40
+ Coordinates of polygon.
36
41
"""
37
42
self .type = "polygon"
38
43
self .data = (x , y )
You can’t perform that action at this time.
0 commit comments