Skip to content
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

Fix reversed color scale in annotated heatmap #867

Closed
wants to merge 1 commit into from

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.

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).
@jonmmease
Copy link
Contributor

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

@jonmmease jonmmease closed this Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants