Skip to content

[BUG] zmin and zmax not working in imshow for 2d data #1931

Closed
@emmanuelle

Description

@emmanuelle

See for example

import plotly.express as px
import numpy as np
img = np.random.random((10, 10))
px.imshow(img, zmin=0.3, zmax=0.7)

I think this is because the Heatmap trace uses instead the range_color argument which was quite introduced quite late in the process. It's easy to fix, we just have to decide first if the API is ok as it is.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions