Skip to content

Commit f7c930a

Browse files
authored
Add description for the "columns" arguments (#766)
1 parent adf5e4d commit f7c930a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pygmt/base_plotting.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,12 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
782782
polygon in the input data. To apply it to the fill color, use
783783
``color='+z'``. To apply it to the pen color, append **+z** to
784784
**pen**.
785+
columns : str or 1d array
786+
Choose which columns are x, y, color, and size, respectively if
787+
input is provided via *data*. E.g. ``columns = [0, 1]`` or
788+
``columns = '0,1'`` if the *x* values are stored in the first
789+
column and *y* values in the second one. Note: zero-based
790+
indexing is used.
785791
label : str
786792
Add a legend entry for the symbol or line being plotted.
787793

0 commit comments

Comments
 (0)