navis.Viewer.add¶
- Viewer.add(x, center=True, clear=False, combine=False, **kwargs)[source]¶
Add objects to canvas.
- Parameters:
x (Neuron/List | Dotprops | Volumes | Points | vispy Visuals) – Object(s) to add to the canvas.
center (bool, optional) – If True, re-center camera to all objects on canvas.
clear (bool, optional) – If True, clear canvas before adding new objects.
combine (bool, optional) – If True, will try combining similar objects into a single visual. This reduces the number of shader programs and can greatly increase the frame rate. Downside: objects can no longer be individually manipulated.
**kwargs – Keyword arguments passed when generating visuals. See
plot3d()
for options.
- Return type:
None