- Notifications
You must be signed in to change notification settings - Fork23
Add widgets for setting histogram bins#242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
27 commits Select commitHold shift + click to select a range
a7b09d4 Add widgets to set bin parameters for histograms
p-j-smith96b2f0c Add test for histogram widget when setting bin parameters
p-j-smithb8623ed Update changelog
p-j-smith4e4fb84 Make linters happy
p-j-smith5ac1f71 Fix type hints
p-j-smithfab2906 Don't allow bins lower than 0 if dtype is unisgned
p-j-smith5553174 Update changelog
p-j-smithe86d4f6 Undo changes to example of HistogramWidget
p-j-smithc5e0886 Fix autosetting bins from data
p-j-smith127d325 remove duplicate on_update_layers method
p-j-smithb8ffdb7 Make linters happy
p-j-smith88760cf Add HistogramWidget._bin_widgets attribute for storing bin widgets
p-j-smithd56942b Fix calculation of bins from widget values
p-j-smith11590b2 Calculate step using n_bins-1
p-j-smith08a5086 cannot use negative start bin for uint data
p-j-smith65e84f8 Make HistogramWidget bins_num widget correspond to number of bins rat…
p-j-smith37d33ae Merge branch 'main' into feat/hist-bin-params
p-j-smith8a7d9e4 fix typo in comment about using 128 bins for float data
p-j-smithfbd929e Merge branch 'main' into feat/hist-bin-params
p-j-smith7c4cdc8 Update changelog
p-j-smithc6b5d8e Merge branch 'main' into feat/hist-bin-params
p-j-smith6261f4c Add 'num_bins, 'start', and 'stop' parameters to '_get_bins'
p-j-smith457bc1b Merge branch 'main' into feat/hist-bin-params
p-j-smith426a0f5 use '| None' rather than Optional[Union[...]] for type hints
p-j-smith67a8641 remove widgest to set start and stop values for histogram bins
p-j-smith208af97 Merge branch 'main' into feat/hist-bin-params
dstansby8fe7c7f Update changelog
dstansbyFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
6 changes: 6 additions & 0 deletionsdocs/changelog.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
87 changes: 76 additions & 11 deletionssrc/napari_matplotlib/histogram.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Binary file addedsrc/napari_matplotlib/tests/baseline/test_histogram_2D_bins.png
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletionssrc/napari_matplotlib/tests/test_histogram.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.