diff --git a/doc/_templates/autosummary/class.rst b/doc/_templates/autosummary/class.rst index fb3aecc7d1b..db5d1e29b45 100644 --- a/doc/_templates/autosummary/class.rst +++ b/doc/_templates/autosummary/class.rst @@ -4,6 +4,15 @@ .. autoclass:: {{ objname }} +{% if attributes %} +.. rubric:: Attributes + +{% for item in attributes %} +.. autoproperty:: + {{ objname }}.{{ item }} +{% endfor %} +{% endif %} + {% if methods != ["__init__"] %} .. rubric:: Methods Summary diff --git a/pygmt/accessors.py b/pygmt/accessors.py index 4fbf10435cb..a21c85ae3b8 100644 --- a/pygmt/accessors.py +++ b/pygmt/accessors.py @@ -17,15 +17,6 @@ class GMTDataArrayAccessor: properties about grids, which are important for PyGMT to correctly process and plot the grids. - Attributes - ---------- - - registration : int - Registration type of the grid, either 0 (Gridline) or 1 (Pixel). - gtype : int - Coordinate system type of the grid, either 0 (Cartesian) or 1 - (Geographic). - Notes -----