-
Notifications
You must be signed in to change notification settings - Fork 363
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
Adding cmocean colour maps #6446
Conversation
Should we ping Fabio to find out if he has a preference for the group name for Scientific Colour Maps before moving forward with them under 'Crameri'? For context, the readme suggests that those cpts are used under the namespace 'SCM7' in Python. |
Actually, it sounds like SCM7 is a better name than just Crameri anyway since it will allow some name recognition with python/matplotlib. |
Is there a preference for SCM7 or scm7? |
@meghanrjones what does matplotlib do, upper or lower case? Hopefully upper case since an abbreviation, no? |
They actually use ScientificColourMaps7 in python, so I'll use uppercase |
Does any of you understand why the deployment to Preview fails? |
I dont, but it does seem to happen from time to time and I have kind of ignored it. |
Then I think this is ready, so I'll remove the "WIP". |
Hi @remkos, I am sure @meghanrjones can help with this later. If you are interested, the COntribution Guide on the top GitHub page talks about the steps involved in updating plots via dvc. I just successfully made my first update a few days ago, with some hand-holding.... |
Yes, the contributing guide lists instructions for building the docs after installing dvc and I could provide further clarification as needed. I am working on an alternative to using dvc that will generate the postscript files as part of Regardless of the path for building the documentation, pushing the new images would require dvc. But Paul or I could do this for you if you don't want to spend time installing dvc and setting up authentication for DAGsHub. |
Is this in matplotlib? Uppercase sounds good to me, but I am unclear about where to find ScientificColourMaps7. |
Ah I see, we were looking at the same section. The init file uses ScientificColourMaps7 and is imported as SCM7. |
Good point, +1 for SCM. |
Yep, Fabio cranks these out very frequently so I agree we should avoid the version number. We will simply supply whatever the most recent version has (and we have a CI test that alerts us when he releases something new). |
For plot consistency and backward compatibility, could a footnote be added on the palette doc to refer to previous versions? |
Things work fully backward compatible. You can use a colormap name with or without the directory name. Of course, this will not work when there are overlapping names in separate directories. |
I will need to fix a few tests. For instance, this happens:
|
OK, the crash (even just running gmt makecpt) was because a missing comma after the last cmocean entry in gmt_master.h. Now working. |
I can certainly add documentation to |
No worries, I think I already updated the plots in dvc for this, so if you can help with some text then we are good. We hope to release 6.4 really soon so just do the basics. |
I've implemented new wording in makecpt and grd2cpt man pages and reviewed the section in the cookbook. |
@remkos, can you please add the new cmap source to the acknowledgement section of the readme as part of this PR - https://github.com/GenericMappingTools/gmt#acknowledgment? |
@meghanrjones: Done with commit 85458cb |
Description of proposed changes
This PR implements issue #6284
Fixes #6284
Reminders