Skip to content

FeaturesLineWidget #200

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP: re-factor line widgets
- make LineBaseWidget
- make LineWidget for plotting intensities under shapes layer
- make FeaturesLineWidget for plotting features from labels layer (grouped by a label column matching labels in layer)
  • Loading branch information
zoccoler committed Jun 30, 2023
commit 86ac6d28433c03355d1e945956f53b530c89f003
4 changes: 3 additions & 1 deletion src/napari_matplotlib/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ def current_z(self) -> int:
"""
Current z-step of the napari viewer.
"""
return self.viewer.dims.current_step[0]
if self.viewer.dims.ndim < 3:
return slice(None)
return self.viewer.dims.current_step[-3]

def _setup_callbacks(self) -> None:
"""
Expand Down
Loading