Code Monkey home page Code Monkey logo

Comments (6)

prisae avatar prisae commented on May 17, 2024 2

LogNorm and SymLogNorm

Another point (along comments by @craigmillernz): Adding the possibility for LogNorm and SymLogNorm (as in matplotlib/discretize).

from pyvista.

prisae avatar prisae commented on May 17, 2024 1

Thanks for opening the issue. As I mentioned on Slack, the idea arose because you mentioned the interactive keyword, which I meant was about changing the colormap, but turned out to be about changing the appearance/location of the colorbar. Again as I said before, I think in general this is a bad idea (at least for static figures, for the exactly same reasons why jet etc are bad colormaps), but it can be very useful to explore the dataspace interactively.

from pyvista.

banesullivan avatar banesullivan commented on May 17, 2024

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 matplotlib colormap which we could support linking to vtki plots.

Perhaps we could make a new module called icolormap under @OpenGeoVis?

from pyvista.

prisae avatar prisae commented on May 17, 2024

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.

from pyvista.

prisae avatar prisae commented on May 17, 2024

(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.)

from pyvista.

e-dub avatar e-dub commented on May 17, 2024

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.
image

from pyvista.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.