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 a gallery example of setting line colors with a custom CPT #774

Merged
merged 5 commits into from
Dec 30, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update examples/gallery/line/line-custom-cpt.py
Co-authored-by: Dongdong Tian <[email protected]>
  • Loading branch information
willschlitzer and seisman committed Dec 30, 2020
commit fb998c54a44f82afdc8062e9e1f02b13e19faa1f
2 changes: 1 addition & 1 deletion examples/gallery/line/line-custom-cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-----------------------------

The color of the lines made by :meth:`pygmt.Figure.plot` can be set according to a
custom CPT and assigned with the *pen* argument.
custom CPT and assigned with the ``pen`` argument.

The custom CPT can be used by setting the plot command's ``cmap`` argument to ``True``. The
``zvalue`` argument sets the z-value (color) to be used from the custom CPT, and the line
Expand Down