Skip to content

geom_imshow(): should render transparency for NaNs when all other pixel values are identical. #1485

@alshan

Description

@alshan

Currently, this code

image_data = np.array([
    [1.0, np.nan, 1.0],
    [np.nan, 1.0, np.nan],
    [1.0, np.nan, 1.0]
])

ggplot() + geom_imshow(image_data)

renders a solid all grey image.

Expected: transparency of NaN pixels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions