Skip to content

Commit aaee599

Browse files
Copy interval docs from grdcontour.py to the levels docs in contour.py (#1043)
Co-authored-by: Dongdong Tian <[email protected]>
1 parent 8899369 commit aaee599

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

pygmt/src/contour.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,16 @@ def contour(self, x=None, y=None, z=None, data=None, **kwargs):
6464
- Specify a fixed annotation interval *annot_int* or a
6565
single annotation level +\ *annot_int*.
6666
{B}
67-
levels : str
68-
Contour file or level(s)
67+
levels : str or int
68+
Specify the contour lines to generate.
69+
70+
- The filename of a CPT file where the color boundaries will
71+
be used as contour levels.
72+
- The filename of a 2 (or 3) column file containing the contour
73+
levels (col 1), (**C**)ontour or (**A**)nnotate (col 2), and optional
74+
angle (col 3)
75+
- A fixed contour interval *cont_int* or a single contour with
76+
+\ *cont_int*
6977
D : str
7078
Dump contour coordinates.
7179
E : str

pygmt/src/grdcontour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def grdcontour(self, grid, **kwargs):
4747
interval : str or int
4848
Specify the contour lines to generate.
4949
50-
- The filename of a `CPT` file where the color boundaries will
50+
- The filename of a CPT file where the color boundaries will
5151
be used as contour levels.
5252
- The filename of a 2 (or 3) column file containing the contour
5353
levels (col 1), (**C**)ontour or (**A**)nnotate (col 2), and optional

0 commit comments

Comments
 (0)