Skip to content

Histogram zero values #553

@apasarkar

Description

@apasarkar

One bug in histogram widget right now:

Whenever we display data with constant value (say, something that is all zeros or all ones), the histogram computations throw a divide by zero error.

Concretely:
data = np.zeros((20, 10, 5))
iw = ImageWidget(data)
iw.show()

will throw an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions