Skip to content

Commit 7b6e48a

Browse files
authored
Update README.md
1 parent e1a825c commit 7b6e48a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ ndv.imshow(data)
2020

2121
![Montage](https://github.com/pyapp-kit/ndv/assets/1609449/712861f7-ddcb-4ecd-9a4c-ba5f0cc1ee2c)
2222

23-
## `NDViewer`
23+
As an alternative to `ndv.imshow()`, you can instantiate the `ndv.NDViewer` (`QWidget` subclass) directly
24+
25+
```python
26+
from qtpy.QtWidgets import QApplication
27+
from ndv import NDViewer
28+
29+
app = QApplication([])
30+
viewer = NDViewer(data)
31+
viewer.show()
32+
app.exec()
33+
```
34+
35+
## `ndv.NDViewer`
2436

2537
- supports arbitrary number of dimensions, with 2D/3D view canvas, and sliders for all non-visible dims
2638
- sliders support integer as well as slice (range)-based slicing

0 commit comments

Comments
 (0)