Giter Club home page Giter Club logo

Comments (3)

j1c avatar j1c commented on May 24, 2024

Note: This only applies when the values spans both the positive and negative domain. If values span only the positive or only the negative, I agree that there should only be 1-tone.

Im not sure if you are denoting small numbers to be negative numbers, or small as in the magnitude. If you are suggesting that the color scale should diverge in the same color spectrum (e.g. white when near 0 and red when going in either positive or negative direction), I don't agree with this. If you are suggesting that a sequential colorbar should be used (e.g. white for the most negative number, and increasing as values increase), I don't agree with this either.

I believe the intensity of color should be based on the absolute magnitude of the value, and color to mean which direction the magnitude is (one color for positive and another for negative). Otherwise, you dont get a one-to-one correspondence from a number to a color. -5 should show as being different color than +5 because they are different.

See some examples below. I sample a weighted sbm where on the first diagonal block is sampled from N(-2, .5) and second diagonal block is sampled from N(2, .5). Off diagonals are just binary.

Choosing the most negative to be white doesn't make sense. Presence of color should mean magnitudes > 0.
image

Choosing the 0 to be white and diverge in same color. Looks fine, but how do i know which value the color correspond to? there is no one-to-one correspondence from value to color
image

This one makes most sense to me.
image

from graspologic.

ebridge2 avatar ebridge2 commented on May 24, 2024

Sure; that logic makes sense

from graspologic.

ebridge2 avatar ebridge2 commented on May 24, 2024

did't realize it has an option for colormap. that works too!

from graspologic.

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.