Skip to content
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

Setting Composite channel mode in constructor retains/adds channel slider #45

Open
gselzer opened this issue Oct 8, 2024 · 0 comments

Comments

@gselzer
Copy link
Contributor

gselzer commented Oct 8, 2024

  • ndv version: main
  • Python version: 3.12.3
  • Operating System: Windows 11

Description

Setting channel_mode="composite" within the NDViewer constructor adds a slider for the channel index. Changing the value of the channel index does nothing.

image

What I Did

I made a slight edit to examples/numpy_arr.py:

from __future__ import annotations

import ndv

try:
    img = ndv.data.cells3d()
except Exception as e:
    print(e)
    img = ndv.data.nd_sine_wave((10, 3, 8, 512, 512))

ndv.imshow(img, channel_mode="composite")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant