Skip to content

CellMap data not displayed with color map #211

@johnkit

Description

@johnkit

In the janelia_cosem_dataset.ipynb example notebook, the dataset (jrc_hela_1) is displayed as a grayscale block, with the color map apparently ignored.

Image

This seems to be because the data type is uint8. As a check, I added a float32 column to the Xarray dataset by adding a line to the end of theopen_cosem_dataset() function: ds["fvalues"] = ds["values"].astype('f4') . The new column fvalues is color mapped as expected.

Image

Ideally, we should update Pan3D to apply color to integer data, or at a minium, update the example notebook to add a floating point column for the default display.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions