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

:bone colormap seems wrong #132

Open
asinghvi17 opened this issue Sep 23, 2024 · 1 comment
Open

:bone colormap seems wrong #132

asinghvi17 opened this issue Sep 23, 2024 · 1 comment

Comments

@asinghvi17
Copy link
Contributor

asinghvi17 commented Sep 23, 2024

Here, the bone colormap is a straight grayscale white-to-black map, but Matplotlib gives it a blue tinge.

_bone_data = {'red':   ((0., 0., 0.),
                        (0.746032, 0.652778, 0.652778),
                        (1.0, 1.0, 1.0)),
              'green': ((0., 0., 0.),
                        (0.365079, 0.319444, 0.319444),
                        (0.746032, 0.777778, 0.777778),
                        (1.0, 1.0, 1.0)),
              'blue':  ((0., 0., 0.),
                        (0.365079, 0.444444, 0.444444),
                        (1.0, 1.0, 1.0))}

Is there a particular reason we sampled the colormaps here and did not translate Matplotlib's colormaps directly?

@cormullion
Copy link
Member

cormullion commented Sep 24, 2024

Yes, for some reason back in the day there must have been a name-clash, so it looks like the Matplotlib 'bone' got renamed as 'bone_1'.

Screenshot 2024-09-24 at 09 32 58

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