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

Update the example for plotting data points of various colors #470

Closed
seisman opened this issue Jun 1, 2020 · 0 comments · Fixed by #472
Closed

Update the example for plotting data points of various colors #470

seisman opened this issue Jun 1, 2020 · 0 comments · Fixed by #472
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Helping hands are appreciated
Milestone

Comments

@seisman
Copy link
Member

seisman commented Jun 1, 2020

Description of the problem

In the last plotting example in https://www.pygmt.org/latest/tutorials/plot.html, color=data.depth_km / data.depth_km.max() is passed to Figure.plot because makecpt wasn't implemented at that time.

We normalize the data values given to color because, by default, plot can only interpret values between 0 and 1. To use the actual data values, we would need to create a color palette table (CPT) which isn’t implemented yet.

Now we already can create a CPT file using pygmt.makecpt and we should rewrite the example using pygmt.makecpt.

@seisman seisman added documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Helping hands are appreciated labels Jun 1, 2020
@weiji14 weiji14 added this to the 0.1.x milestone Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Helping hands are appreciated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants