Skip to content

Annotated heatmaps: font colour blends with the colour of the square when using zmin and zmax #2187

Closed
@PlatonB

Description

@PlatonB

Since there's no reaction to the new message in #1300, I'll write it as a separate issue.

Bug can be reproduced when using zmin and zmax arguments. Plotly 4.5.0.

from random import triangular
import plotly.figure_factory as ff

z = [[round(triangular(0.01, 0.1), 3) for j in range(10)] for i in range(10)]
ff.create_annotated_heatmap(z, colorscale='greens').show()
ff.create_annotated_heatmap(z, colorscale='greens', zmin=0, zmax=1).show()

Without zmin and zmax:
without_zmin_zmax

With zmin=0 and zmax=1:
with_zmin_zmax

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions