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

Correct use of BatlowW and BatlowK #25

Closed
callumrollo opened this issue Jun 26, 2023 · 4 comments · Fixed by #28
Closed

Correct use of BatlowW and BatlowK #25

callumrollo opened this issue Jun 26, 2023 · 4 comments · Fixed by #28

Comments

@callumrollo
Copy link
Owner

As detailed in #24 by tobiscode, batlowW and batlowK are now acceptable as categorical colormaps

@tobiscode
Copy link

Hi,
I don't see the relevant commit, and after updating to v1.6 on PyPI, I still get the following error:

>>> from cmcrameri import cm
>>> cm.batlowS
<matplotlib.colors.ListedColormap object at 0x000002058EDA0B50>
>>> cm.batlowW
<matplotlib.colors.ListedColormap object at 0x000002058EDA0CD0>
>>> cm.batlowWS
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'cmcrameri.cm' has no attribute 'batlowWS'
>>> cm.batlowKS
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'cmcrameri.cm' has no attribute 'batlowKS'

Has the update not made it to PyPI yet?
Thanks!

@callumrollo
Copy link
Owner Author

Ah my mistake, I shouldn't have closed this! I've added the new categorical colourmaps including batlowKS and battlowWS in #28

@callumrollo
Copy link
Owner Author

Live on PyPI now with version 1.7 https://pypi.org/project/cmcrameri/#history

It has batlowWS and batlowKS

@callumrollo callumrollo reopened this Jul 10, 2023
@tobiscode
Copy link

Works, thanks a lot!

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

Successfully merging a pull request may close this issue.

2 participants