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

Crash when "gray" CPT is used #1472

Closed
ZMAlt opened this issue Jun 16, 2024 · 3 comments
Closed

Crash when "gray" CPT is used #1472

ZMAlt opened this issue Jun 16, 2024 · 3 comments

Comments

@ZMAlt
Copy link
Contributor

ZMAlt commented Jun 16, 2024

Hi, @joa-quim

I found a weird crash when "gray" CPT is used.

using GMT
grd = grdcut("@earth_relief_01d", region = (110, 120, 10, 20))
cpt = grd2cpt(grd, C = "gray")  # same situation for makecpt
grdimage(grd, C = cpt, savefig = "test.pdf")

If "gray" is replaced with other cpt, there is no crash.

@joa-quim
Copy link
Member

Confirm it too. Thanks.

@joa-quim joa-quim changed the title Crush when "gray" CPT is used Crash when "gray" CPT is used Jun 17, 2024
@joa-quim
Copy link
Member

This is due to a bug in GMT that returns a conflicting info for the gray.cpt master CPT. Fixed in master by testing if the colors are gray or not.

@ZMAlt
Copy link
Contributor Author

ZMAlt commented Jun 18, 2024

Great.
I have tested it using the master branch. It works now.
Thank you.

@ZMAlt ZMAlt closed this as completed Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants