:orphan: Scene ===== More example scripts are available in the VisPy repository's `example scripts directory `_. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_axes_plot_thumb.png :alt: :ref:`sphx_glr_gallery_scene_axes_plot.py` .. raw:: html
Simple Line with Axis
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_background_borders_thumb.png :alt: :ref:`sphx_glr_gallery_scene_background_borders.py` .. raw:: html
Demonstration of borders and background colors
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_clipping_planes_thumb.png :alt: :ref:`sphx_glr_gallery_scene_clipping_planes.py` .. raw:: html
Clipping planes with volume and markers
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_colorbar_widget_thumb.png :alt: :ref:`sphx_glr_gallery_scene_colorbar_widget.py` .. raw:: html
Display a ColorBar
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_colored_line_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_colored_line.py` .. raw:: html
Changing Line Colors
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_complex_image_thumb.png :alt: :ref:`sphx_glr_gallery_scene_complex_image.py` .. raw:: html
Complex image data
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_console_thumb.png :alt: :ref:`sphx_glr_gallery_scene_console.py` .. raw:: html
Vispy Console
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_contour_thumb.png :alt: :ref:`sphx_glr_gallery_scene_contour.py` .. raw:: html
Apply Contour Filter on an Image
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_face_picking_thumb.png :alt: :ref:`sphx_glr_gallery_scene_face_picking.py` .. raw:: html
Picking Faces from a Mesh
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_flipped_axis_thumb.png :alt: :ref:`sphx_glr_gallery_scene_flipped_axis.py` .. raw:: html
Aspect Ratios
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_graph_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_graph.py` .. raw:: html
Visualize NetworkX Graph
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_image_thumb.png :alt: :ref:`sphx_glr_gallery_scene_image.py` .. raw:: html
Display an Image
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_image_custom_kernel_thumb.png :alt: :ref:`sphx_glr_gallery_scene_image_custom_kernel.py` .. raw:: html
Custom image sampling
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_infinite_line_thumb.png :alt: :ref:`sphx_glr_gallery_scene_infinite_line.py` .. raw:: html
Draw an InfiniteLine
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_instanced_mesh_thumb.png :alt: :ref:`sphx_glr_gallery_scene_instanced_mesh.py` .. raw:: html
Instanced rendering of arbitrarily transformed meshes
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_instanced_mesh_visual_thumb.png :alt: :ref:`sphx_glr_gallery_scene_instanced_mesh_visual.py` .. raw:: html
Instanced Mesh Visual
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_instanced_quad_visual_thumb.png :alt: :ref:`sphx_glr_gallery_scene_instanced_quad_visual.py` .. raw:: html
Custom Visual for instanced rendering of a colored quad
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_isocurve_thumb.png :alt: :ref:`sphx_glr_gallery_scene_isocurve.py` .. raw:: html
Display an Isocurve
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_isocurve_for_trisurface_thumb.png :alt: :ref:`sphx_glr_gallery_scene_isocurve_for_trisurface.py` .. raw:: html
Isocurve for Triangular Mesh
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_isocurve_for_trisurface_qt_thumb.png :alt: :ref:`sphx_glr_gallery_scene_isocurve_for_trisurface_qt.py` .. raw:: html
Isocurve for Triangular Mesh with Qt Interface
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_isocurve_updates_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_isocurve_updates.py` .. raw:: html
Update Image and Isocurve Visuals
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_isosurface_thumb.png :alt: :ref:`sphx_glr_gallery_scene_isosurface.py` .. raw:: html
Isosurface Visual
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_lasso_thumb.png :alt: :ref:`sphx_glr_gallery_scene_lasso.py` .. raw:: html
Vispy Lasso
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_line_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_line.py` .. raw:: html
Draw a Line
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_line_update_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_line_update.py` .. raw:: html
Animated Line Visual
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_linear_region_thumb.png :alt: :ref:`sphx_glr_gallery_scene_linear_region.py` .. raw:: html
Draw an LinearRegion
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_magnify_thumb.png :alt: :ref:`sphx_glr_gallery_scene_magnify.py` .. raw:: html
Zoom in using MagnifyCamera
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_marker_picking_thumb.png :alt: :ref:`sphx_glr_gallery_scene_marker_picking.py` .. raw:: html
Picking Markers
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_marker_spheres_thumb.png :alt: :ref:`sphx_glr_gallery_scene_marker_spheres.py` .. raw:: html
Spheres and Sticks
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_mesh_normals_thumb.png :alt: :ref:`sphx_glr_gallery_scene_mesh_normals.py` .. raw:: html
Display Mesh Normals
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_mesh_shading_thumb.png :alt: :ref:`sphx_glr_gallery_scene_mesh_shading.py` .. raw:: html
Shading a Mesh
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_mesh_texture_thumb.png :alt: :ref:`sphx_glr_gallery_scene_mesh_texture.py` .. raw:: html
Texture Filter on Meshes
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_nested_viewbox_thumb.png :alt: :ref:`sphx_glr_gallery_scene_nested_viewbox.py` .. raw:: html
Nested Viewboxes
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_one_cam_two_scenes_thumb.png :alt: :ref:`sphx_glr_gallery_scene_one_cam_two_scenes.py` .. raw:: html
Share Camera Views
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_one_scene_four_cams_thumb.png :alt: :ref:`sphx_glr_gallery_scene_one_scene_four_cams.py` .. raw:: html
Single Scene in Multiple View boxes
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_point_cloud_thumb.png :alt: :ref:`sphx_glr_gallery_scene_point_cloud.py` .. raw:: html
Create a Point Cloud
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_polygon_thumb.png :alt: :ref:`sphx_glr_gallery_scene_polygon.py` .. raw:: html
Shape Visuals
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_save_animation_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_save_animation.py` .. raw:: html
Create and Save Animation
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_sensitivity_thumb.png :alt: :ref:`sphx_glr_gallery_scene_sensitivity.py` .. raw:: html
Zoom Sensitivity
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_shape_draw_thumb.png :alt: :ref:`sphx_glr_gallery_scene_shape_draw.py` .. raw:: html
Draw and Edit Shapes with Mouse
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_sphere_thumb.png :alt: :ref:`sphx_glr_gallery_scene_sphere.py` .. raw:: html
Draw a Sphere
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_surface_plot_thumb.png :alt: :ref:`sphx_glr_gallery_scene_surface_plot.py` .. raw:: html
Draw a SurfacePlot
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_text_thumb.png :alt: :ref:`sphx_glr_gallery_scene_text.py` .. raw:: html
Text in a Scene and ViewBox
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_turntable_box_thumb.png :alt: :ref:`sphx_glr_gallery_scene_turntable_box.py` .. raw:: html
Display a Cube
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_viewbox_thumb.png :alt: :ref:`sphx_glr_gallery_scene_viewbox.py` .. raw:: html
ViewBox with Clipping Methods
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_volume_thumb.png :alt: :ref:`sphx_glr_gallery_scene_volume.py` .. raw:: html
Volume Rendering
.. raw:: html
.. only:: html .. image:: /gallery/scene/images/thumb/sphx_glr_volume_plane_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_volume_plane.py` .. raw:: html
Rendering Planes through 3D Data
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: /gallery/scene/axes_plot /gallery/scene/background_borders /gallery/scene/clipping_planes /gallery/scene/colorbar_widget /gallery/scene/colored_line /gallery/scene/complex_image /gallery/scene/console /gallery/scene/contour /gallery/scene/face_picking /gallery/scene/flipped_axis /gallery/scene/graph /gallery/scene/image /gallery/scene/image_custom_kernel /gallery/scene/infinite_line /gallery/scene/instanced_mesh /gallery/scene/instanced_mesh_visual /gallery/scene/instanced_quad_visual /gallery/scene/isocurve /gallery/scene/isocurve_for_trisurface /gallery/scene/isocurve_for_trisurface_qt /gallery/scene/isocurve_updates /gallery/scene/isosurface /gallery/scene/lasso /gallery/scene/line /gallery/scene/line_update /gallery/scene/linear_region /gallery/scene/magnify /gallery/scene/marker_picking /gallery/scene/marker_spheres /gallery/scene/mesh_normals /gallery/scene/mesh_shading /gallery/scene/mesh_texture /gallery/scene/nested_viewbox /gallery/scene/one_cam_two_scenes /gallery/scene/one_scene_four_cams /gallery/scene/point_cloud /gallery/scene/polygon /gallery/scene/save_animation /gallery/scene/sensitivity /gallery/scene/shape_draw /gallery/scene/sphere /gallery/scene/surface_plot /gallery/scene/text /gallery/scene/turntable_box /gallery/scene/viewbox /gallery/scene/volume /gallery/scene/volume_plane Grid Layouts ============ Examples of using the GridWidget to layout elements in a SceneCanvas. .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid.py` .. raw:: html
Multiple ViewBoxes on a Grid
.. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_basic_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid_basic.py` .. raw:: html
Simple use of a grid layout
.. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_holed_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid_holed.py` .. raw:: html
More complex grid layout
.. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_large_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid_large.py` .. raw:: html
Multiple Line Views on a Grid
.. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_uneven_col_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid_uneven_col.py` .. raw:: html
Another Grid Layout
.. raw:: html
.. only:: html .. image:: /gallery/scene/grid_layout/images/thumb/sphx_glr_grid_x_y_viewbox_thumb.png :alt: :ref:`sphx_glr_gallery_scene_grid_layout_grid_x_y_viewbox.py` .. raw:: html
Plot-like Grid Layout
.. thumbnail-parent-div-close .. raw:: html
Realtime Data Tutorial ====================== Examples that progressively build a Qt-based visualization application with updating data. The data in this tutorial is artificial, but is created and used in a way resembling real world data streams. In early examples data is created in the main GUI thread, but creation is later moved to an external thread to promote better responsiveness from the GUI. Each example is a self-contained working application in some sense and can be used as a reference for the particular feature it is demonstrating. However, each example builds on the example before it so features and vispy application best practices are improved at the cost of more complex code. Lastly, these examples use PySide2, but the application structure and demonstrated concepts should apply and be transferable to other backends (especially the Qt ones) with only a few exceptions. At the time of writing PySide2 is the newest version of PySide available through conda-forge conda channels. If/when PySide6 is available, pull requests to update these examples would be welcome. ;) .. raw:: html
.. thumbnail-parent-div-open .. raw:: html
.. only:: html .. image:: /gallery/scene/realtime_data/images/thumb/sphx_glr_ex01_embedded_vispy_thumb.png :alt: :ref:`sphx_glr_gallery_scene_realtime_data_ex01_embedded_vispy.py` .. raw:: html
Embed VisPy into Qt
.. raw:: html
.. only:: html .. image:: /gallery/scene/realtime_data/images/thumb/sphx_glr_ex02_control_vispy_from_qt_thumb.png :alt: :ref:`sphx_glr_gallery_scene_realtime_data_ex02_control_vispy_from_qt.py` .. raw:: html
Control VisPy from Qt
.. raw:: html
.. only:: html .. image:: /gallery/scene/realtime_data/images/thumb/sphx_glr_ex03a_data_sources_timer_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_realtime_data_ex03a_data_sources_timer.py` .. raw:: html
Update data using timer-based events
.. raw:: html
.. only:: html .. image:: /gallery/scene/realtime_data/images/thumb/sphx_glr_ex03b_data_sources_threaded_loop_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_realtime_data_ex03b_data_sources_threaded_loop.py` .. raw:: html
Update data using a loop in a background thread
.. raw:: html
.. only:: html .. image:: /gallery/scene/realtime_data/images/thumb/sphx_glr_ex03c_data_sources_threaded_events_thumb.gif :alt: :ref:`sphx_glr_gallery_scene_realtime_data_ex03c_data_sources_threaded_events.py` .. raw:: html
Update data using timer events in a background thread
.. thumbnail-parent-div-close .. raw:: html
.. toctree:: :hidden: :includehidden: /gallery/scene/grid_layout/index.rst /gallery/scene/realtime_data/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: scene_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: scene_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_