Closed
Description
It seems that the terms 'function' and 'method' are used exchangeable in the tutorial and gallery examples.
From my understanding, in Python a method belongs to a class and is associated with / called on an object. This is consistent to the API Documentation of the pygmt.Figure
class.
However,
- there are examples which use 'function' for the methods of the
pygmt.Figure
class, e.g.:- Making subplots: The
pygmt.Figure.subplot
function
- Making subplots: The
- there are examples which use 'method' for the tabular and raster data processing functions, e.g.:
- Generate points along great circles: The
pygmt.project
method - Create ‘wet-dry’ mask grid: The
pygmt.grdlandmask
method - Blockmean: The
pygmt.blockmean
method
- Generate points along great circles: The
I think, we should be precise and consistent with the terminology (at least in the way that something is always either a function or a method) to avoid confusions.