-
Notifications
You must be signed in to change notification settings - Fork 100
ENH: Colormap argument for add_overlay
.
#95
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
Conversation
Added as a kwarg with "YlOrRd" as the default (which was the only possible behavior previously).
LGTM. @mwaskom you were most recently changing the colormap code, WDYT? |
(Ignore the Travis build error issue for now, we're in the midst of adding Travis support.) |
It's more complicated than this as an overlay has both positive and negative components, with different colormaps ( We also should think about how to handle reversals; technically the positive overlays get mapped with "YlOrRd_r", but mayavi doesn't understand that so the reversal logic is handled by changing the colorbar object and not in terms of the palette values. With the colormap additions from #82 PySurfer can handle that logic itself, but it's worth thinking about what should be considered a reversal -- should the positive colormap silently reverse colormaps so that ColorBrewer palettes lighten at higher values? Or should we take the more explicit/less obvious step of making "YlOrRd_r" the default? |
OK. Just to explain why I did this: the issue I had is that the For example, I needed to overlay data from an mgh file that only has data I might be misusing On Wed, Feb 5, 2014 at 10:51 AM, Michael Waskom notifications@github.comwrote:
|
|
You can also change the overlay colormaps post-hoc, like in this example. I'm not opposed to making the overlay colormaps configurable, it will just require figuring out a few things about the right way to do it. Personally I use |
OK - I will try playing with it some more. You can close this PR, if you On Fri, Feb 7, 2014 at 10:32 AM, Michael Waskom notifications@github.comwrote:
|
Closing for now as I don't have the mental bandwidth to decide how this should work, but I do get cyclical itches to make colormaps work better for everyone, so it might happen in the future. |
Added as a kwarg with "YlOrRd" as the default (which was the only possible
behavior previously).