Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Better logarithmic colorscale example #1611

Open
@chriddyp

Description

@chriddyp

Our current example does a nice job of scaling the colors but the labels in the colorbar are a little too condensed:
image

I recognize that this may be a limitation of our colorscale axis (there is no log type), but could we have another example that "fakes" it by:

  1. Setting custom ticktext and tickvals
  2. Normalizing the z data if necessary
  3. Remapping the hover data so be the un-normalized values

The solutions team (cc @ycaokris ) has been mapping data to color with logarithmic values lately, which is why I'm thinking it would be helpful to have a better recipe in our docs. Here are some colorscales I've seen from some sample apps:
image
image

The logarithmic colorscales that I'm thinking about are more like this:
image

Once this is updated, we should provide a backlink to the documentation by commenting in the Stack Overflow question about this topic: https://stackoverflow.com/questions/50392372/logarithmic-color-scale-in-plotly

cc @Mahdis-z @emmanuelle @nicolaskruchten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions