You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
My problem is I prefer to have something like
import cmcrameri # required in order to register the colormaps with Matplotlib
...
plt.imshow(x, aspect='auto', cmap='batlow')
Describe the solution you'd like
I think we don't need cmap_reg_prefix = "cmc."
I really appreciate if you can explain me how it might be problematic?
Best regards,
Mohammad
The text was updated successfully, but these errors were encountered:
I'm not an expert in packaging, but with the "cmc" prefix I am attempting to follow the Python namespace practice to avoid name collisions. If I was to remove the prefix, and another colourmap package provided a colourmap called "batlow" or "grayC" a user wouldn't be able to import them both to compare. This is the same reason that we avoid doing things like from numpy import *.
This is an unlikely case on the face of it, but it's the practice used by more established colourmap packages like cmocean.
You can, of course, fork this repo and remake the colourmaps locally without the "cmc" prefix
Is your feature request related to a problem? Please describe.
My problem is I prefer to have something like
import cmcrameri # required in order to register the colormaps with Matplotlib
...
plt.imshow(x, aspect='auto', cmap='batlow')
Describe the solution you'd like
I think we don't need cmap_reg_prefix = "cmc."
I really appreciate if you can explain me how it might be problematic?
Best regards,
Mohammad
The text was updated successfully, but these errors were encountered: