Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Allow adjustment of histogram bins #239

Copy link
Copy link
Closed
@K-Meech

Description

@K-Meech
Issue body actions

It would be great to allow:

  • Adjustment of histogram bin width / locations via the UI
  • Using integer bin limits for integer images (e.g. uint8, uint16)

For example, if you show the coins image in Napari (File > Open Sample > napari builtins > Coins) and view the histogram, it has an odd 'spiky' appearance where every other bin is higher or lower:
Screenshot 2023-12-14 121238

I think this is because the limits of the bins aren't set to integer values (even though this image is uint8 and therefore only contains positive integers). E.g. I think the bins are np.linspace(1, 252, 100) according to here, so for example bin 20 onwards is: 51.7, 54.2, 56.7, 59.3, 61.8, which means the bins accept pixel values of (52, 53, 54), (55, 56), (57, 58, 59), (60, 61)... This alternating of 2 and 3 pixel values in each bin gives this spiky appearance which is a bit misleading to the actual values. Would it be possible to set integer bin edges, or allow this to be set as an option? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    New featureNew feature or requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.