-
Notifications
You must be signed in to change notification settings - Fork 441
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
Colormap norming #122
Comments
Thanks for opening the issue. As I mentioned on Slack, the idea arose because you mentioned the |
I like the idea of having an interactive way of exploring the colormap and I think this might be a cool side project we could implement for simply creating a Perhaps we could make a new module called |
Maybe @mycarta, @kwinkunks has experienced already with something similar, maybe some stuff already exists? They, quite rightly and as I do, tell everyone to use good colormaps. But by doing so, I think they've come along many tools, which might help here. As important as good colormaps are for static figures, I think such an interactive colormap could be very interesting indeed for playing around interactively. |
(The dangers of it are obvious and known. In the Oil & Gas company I worked years ago it was common that we presented an EM inversion result, just so that the commercial managers came over to play around with the colour-bar [not Matlab, but similar feature] until they were satisfied with what they saw. But then, every powerful tool has its dangers if it falls into the wrong hands.) |
|
I tried to implement the class MidpointNormalize ad hoc to center the color bar, alas without success. Did you get this to work or just an analogy to be implemented? Or has anyone found another solution to this? I implemented another method adapted from here, but it weighs the smaller values too much, see figure. |
Color mapping and scalar bar feature requests:
These requests stemmed from conversations with @prisae and @craigmillernz
Custom Colormaps
Can we implement a way for a user to make custom colormaps using
matplotlib
and send that map as thecmap
argument? This should be as simple as adding in a type check and skipping over the colormap lookup code.Categorical Colormaps
We also need a way to have categorical colormaps
norm
optionAlso, could we add a new
norm
keyword argument similar tomatplotlib
? See this page. This would help users apply a standardmatplotlib
norm or center a color mapping around a value without changing the range. E.g "My data scale goes from-0.6
to0.3
and I'd like the red/blue color map to be centered so that white is at0
."@craigmillernz provided a super useful function for implementing this type of norm:
Interactive colormaps
Could we maybe make a tool to create custom colormaps? This honestly might make the most sense to create a totally separate module under @OpenGeoVis. I'm thinking some sort of
ipywidget
orPyQt5
type interface where a user can harness to create a custom colormap. If we can get this going, then provide a way for it to like withvtki
and update the mappers so a user can interactively update the rendering scene while changing the colormap.Here is an example from @prisae in MatLab:
The text was updated successfully, but these errors were encountered: