.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/01_introductory/viz_show.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_01_introductory_viz_show.py: =================== Quick Visualization =================== This example demonstrates how to use the visualization function to quickly display 3D actors in a window. .. GENERATED FROM PYTHON SOURCE LINES 10-16 .. code-block:: Python import numpy as np from fury.window import show from fury.actor import sphere .. GENERATED FROM PYTHON SOURCE LINES 17-18 Let's create sphere actor to add three spheres to display. .. GENERATED FROM PYTHON SOURCE LINES 18-29 .. code-block:: Python sphere_actor = sphere( np.asarray([(15, 0, 0), (0, 15, 0), (0, 0, 15)]).reshape((3, 3)), radii=15, colors=np.asarray([(1, 0, 0), (0, 1, 0), (0, 0, 1)]).reshape((3, 3)), phi=48, theta=48, ) show(actors=[sphere_actor]) .. _sphx_glr_download_auto_examples_01_introductory_viz_show.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: viz_show.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: viz_show.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: viz_show.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_