Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description for the "columns" arguments #766

Merged
merged 6 commits into from
Dec 27, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pygmt/base_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,11 @@ def plot(self, x=None, y=None, data=None, sizes=None, direction=None, **kwargs):
polygon in the input data. To apply it to the fill color, use
``color='+z'``. To apply it to the pen color, append **+z** to
**pen**.
columns : str or 1d array
Choose which columns are x, y, color, and size, respectively if input
is provided via *data*. E.g. ``columns = [0, 1]`` or ``columns = '0, 1'``
seisman marked this conversation as resolved.
Show resolved Hide resolved
if the *x* values are stored in the first column and *y* values in the
second one: Note: zero-based indexing is used.
seisman marked this conversation as resolved.
Show resolved Hide resolved
label : str
Add a legend entry for the symbol or line being plotted.

Expand Down