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
{{ message }}
Repository navigation
[Bug]: LinearSegmentedColormap returns different results for int/float when used as a function #29487
When invoking a LinearSegmentedColormap object as a function, the output can differ based on whether you pass an integer or a float.
For example, in the code snippet below, cmap(1) returns a completely different result than cmap(1.0). While this behavior might be expected given how the colormap is implemented, it feels unintuitive.
IMO the provided reprex demonstrates the issue clearly, but please let me know if more details are needed.
Activity
timhoffm commentedon Jan 20, 2025
This is a duplicate of #28198.