navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.Viewer.add
          • Viewer.add()

    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

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.