Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix reversed color scale in annotated heatmap #867

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

Closed
inguar wants to merge 1 commit into plotly:master from inguar:patch-1

Conversation

@inguar
Copy link

@inguar inguar commented Oct 26, 2017

Currently, reversescale does not get included into the trace dictionary. Therefore, color scale doesn't change when setting reversescale=True (although the color of annotations gets inverted).

Here is how to reproduce the error:

iplot(ff.create_annotated_heatmap(z=[[1, 30], [20, 60]], reversescale=False))

plot1

iplot(ff.create_annotated_heatmap(z=[[1, 30], [20, 60]], reversescale=True))

plot2

This pull request fixes the problem.

christopherjenness reacted with thumbs up emoji
Currently, `reversescale` does not get included into the `trace` dictionary. Therefore, color scale doesn't change when setting it to `True` (although the color of annotations gets inverted).
Copy link
Contributor

Superseded by #1251. Thanks for getting this started @inguar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

bug something broken

Projects

None yet

Milestone

v3.4.0

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /