Skip to content

x and y arguments are not taken into account when using go.Image inside px.imshow #2758

Closed
@emmanuelle

Description

@emmanuelle

For example

from skimage import data
import numpy as np
import plotly.express as px
img = data.chelsea()
x = 10 * np.arange(img.shape[1])
fig = px.imshow(img, x=x)
fig.show()

image

RGB images (and single-channel images as well with binary_string=True) use go.Image, which does not accept x and y arguments. For xarrays in particular, it would be convenient to be able to use x and y.

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