forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screenshot without margins #7
Open
melonora
wants to merge
86
commits into
main
Choose a base branch
from
screenshot_without_margins
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
6873d6c
remove 2d black margins screenshot
melonora 5948051
add param to viewer.screenshot
melonora d5c0c72
Merge branch 'main' into screenshot_without_margins
melonora 4cc0d90
fix 1 pixel off
melonora 6364fd0
Co-Authored-By: olusesan.ajina@gmail.com
melonora fed5a73
Merge branch 'screenshot_without_margins' of https://github.com/melon…
melonora d3831bd
add test
melonora d012489
fix tests
melonora 4d9b73f
chance parameter name
melonora 9212a9f
fix tests
melonora d091e32
rename to no_margins
melonora 9daa6cb
switch to margins parameter and default old behaviour
melonora feae403
Merge branch 'main' into screenshot_without_margins
melonora 221692c
revert to fit_to_data
melonora 41a8326
disallow fit_to_data if canvas_only is False
melonora 10e86de
adjust test
melonora bffcbb2
fix test camera center
melonora e0e2498
close viewer prevent dangling animation
melonora effce1e
add fit_to_data to nbscreenshot
melonora 3a79f08
Update napari/components/viewer_model.py
melonora 0997e89
change parameter
melonora 33a2a32
update scale_factor calc
melonora 4bb7854
Update napari/_qt/qt_main_window.py
melonora e2ebf1b
update error messages
melonora 31e8e9a
Merge branch 'screenshot_without_margins' of https://github.com/melon…
melonora 2f71728
update docstrings
melonora 6fcf9be
fix error
melonora 7635530
minor grammar fix + fit docstring in 80c
jni 65729bb
Make error strings fit in 80c
jni 1d3140c
Update docstring for screenshot
jni 5d50d64
Fix outdated docstring for Viewer.reset_view
jni 8e5cba5
Fix fit-to-data docstring in two more places
jni 7eabe99
Fix test error message match
jni 55d6db9
rename parameter
melonora 7105658
change to export_view
melonora 6afe24b
address comments
melonora f622097
remove docstring
melonora df0b991
Merge branch 'main' into screenshot_without_margins
melonora cb1e951
fix test
melonora 6984781
Merge branch 'main' into screenshot_without_margins
melonora 21feada
revert to FutureWarning
melonora b840574
Merge branch 'screenshot_without_margins' of https://github.com/melon…
melonora 9fa60ca
change to export_figure
melonora 933cb7f
Merge branch 'main' into screenshot_without_margins
melonora 4b6c429
Match docstring formatting to PEP257 and clarify scale
jni 21f03cb
Update napari/_qt/_tests/test_qt_viewer.py
melonora a2eee46
adjust docstring
melonora 90ca6d3
typehints
melonora 657eaac
typehints
melonora 5cb8a55
typehints
melonora a80e64f
typehints
melonora b0eed32
Update napari/components/viewer_model.py
melonora c142c3c
add example
melonora 6e2a16c
Merge branch 'screenshot_without_margins' of https://github.com/melon…
melonora 5cccde9
set default scale to 1, adjust docstring
melonora fbe7c58
adjust example and docstrings
melonora 74aa262
adjust explanation docstring
melonora e28e9d3
Only allow float or int
melonora b511309
fix isinstance
melonora 32f9bb3
Merge branch 'main' into screenshot_without_margins
jni 3b1fad7
Update napari/_qt/qt_main_window.py
melonora 343182a
Apply suggestions from code review
melonora 04a2ba2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 667795f
add missed import
Czaki 9137b27
Update napari/_qt/_tests/test_qt_viewer.py
Czaki 25167dc
Update napari/viewer.py
melonora 57a93df
use extent.step
melonora 8cb09bf
Merge branch 'screenshot_without_margins' of https://github.com/melon…
melonora f6ff4bf
remove conditional
melonora dde2642
adjust docstring
melonora 25596a8
adjust docstring
melonora 9b1a230
scale -> scale_factor in gallery example
jni eb89264
Add some missing layer actions tests (split rgb, split and merge acti…
dalthviz 7646145
Restore events to `QtViewer.canvas` (#7060)
Czaki 4296ac5
Use minimum step size across all dims
jni e8c3f6f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f5fe4f4
Remove f-string from translation call
jni 374a6df
Move `IO_Utilities` and `Acquire` submenus to their own group in the …
DragaDoncila 46fdf4c
Add empty menu placeholder actions using functional context keys from…
DragaDoncila bc1d95f
Add warning in docstring about ignored size
jni 2bd587d
Minor docstring clarification
jni 4d06794
Fix incorrect setting of scale in test
jni 29f6d66
Use allclose to test screenshot size when rounding
jni de4bb80
Refactor screenshot function to clarify logic flow
jni 77bf7ed
Docstring and typing fixes
jni 2935b04
Merge branch 'main' into screenshot_without_margins
jni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only fails when running the test itself. If you use the same code in a python script it does not fail. For some reason, there is no response to the canvas resize event when running inside a test.