Note
Click here to download the full example code
Layer manipulator (library)
An example controlling the layer manipulator, using napari-threedee as a library.
Out:
[0. 0. 0.]
import napari
import numpy as np
from napari_threedee.manipulators._qt import QtLayerManipulatorWidget
data = np.random.random((100, 100, 100))
viewer = napari.view_image(data)
image_layer = viewer.layers[0]
viewer.dims.ndisplay = 3
widget = QtLayerManipulatorWidget(viewer)
viewer.window.add_dock_widget(widget)
napari.run()
Total running time of the script: ( 0 minutes 4.566 seconds)
Download Python source code: layer_manipulator_library.py