vispy package#
Subpackages#
- vispy.app package
- vispy.color package
- vispy.geometry package
- Subpackages
- Submodules
- vispy.geometry.calculations module
- vispy.geometry.curves module
- vispy.geometry.generation module
- vispy.geometry.isocurve module
- vispy.geometry.isosurface module
- vispy.geometry.meshdata module
- vispy.geometry.normals module
- vispy.geometry.parametric module
- vispy.geometry.polygon module
- vispy.geometry.rect module
- vispy.geometry.torusknot module
- vispy.geometry.triangulation module
- Module contents
MeshData
MeshData.get_bounds()
MeshData.get_edge_colors()
MeshData.get_edges()
MeshData.get_face_colors()
MeshData.get_face_normals()
MeshData.get_faces()
MeshData.get_vertex_colors()
MeshData.get_vertex_faces()
MeshData.get_vertex_normals()
MeshData.get_vertex_values()
MeshData.get_vertices()
MeshData.has_edge_indexed_data()
MeshData.has_face_color()
MeshData.has_face_indexed_data()
MeshData.has_vertex_color()
MeshData.has_vertex_value()
MeshData.is_empty()
MeshData.n_faces
MeshData.n_vertices
MeshData.reset_normals()
MeshData.restore()
MeshData.save()
MeshData.set_face_colors()
MeshData.set_faces()
MeshData.set_vertex_colors()
MeshData.set_vertex_values()
MeshData.set_vertices()
PolygonData
Rect
Triangulation
create_arrow()
create_box()
create_cone()
create_cube()
create_cylinder()
create_grid_mesh()
create_plane()
create_sphere()
resize()
triangulate()
- vispy.gloo package
- Subpackages
- Submodules
- vispy.gloo.buffer module
- vispy.gloo.context module
- vispy.gloo.framebuffer module
- vispy.gloo.glir module
- GL Intermediate Representation Desktop Implementation
BaseGlirParser
GlirBuffer
GlirFragmentShader
GlirFrameBuffer
GlirGeometryShader
GlirIndexBuffer
GlirObject
GlirParser
GlirProgram
GlirQueue
GlirRenderBuffer
GlirShader
GlirTexture
GlirTexture1D
GlirTexture2D
GlirTexture3D
GlirTextureCube
GlirVertexBuffer
GlirVertexShader
as_enum()
as_es2_command()
convert_shader()
glTexImage1D()
glTexImage3D()
glTexSubImage1D()
glTexSubImage3D()
glir_logger()
- vispy.gloo.globject module
- vispy.gloo.preprocessor module
- vispy.gloo.program module
- vispy.gloo.texture module
- vispy.gloo.util module
- vispy.gloo.wrappers module
GL_PRESETS
GlooFunctions
clear()
finish()
flush()
get_gl_configuration()
get_state_presets()
read_pixels()
set_blend_color()
set_blend_equation()
set_blend_func()
set_clear_color()
set_clear_depth()
set_clear_stencil()
set_color_mask()
set_cull_face()
set_depth_func()
set_depth_mask()
set_depth_range()
set_front_face()
set_hint()
set_line_width()
set_polygon_offset()
set_sample_coverage()
set_scissor()
set_state()
set_stencil_func()
set_stencil_mask()
set_stencil_op()
set_viewport()
- Module contents
- vispy.glsl package
- vispy.io package
- vispy.plot package
- vispy.scene package
- Subpackages
- Submodules
- vispy.scene.canvas module
- vispy.scene.events module
- vispy.scene.node module
- vispy.scene.subscene module
- vispy.scene.visuals module
Arrow
Axis
Box
ColorBar
ComplexImage
Compound
Cube
Ellipse
Graph
GridLines
GridMesh
Histogram
Image
InfiniteLine
InstancedMesh
Isocurve
Isoline
Isosurface
Line
LinePlot
LinearRegion
Markers
Mesh
MeshNormals
Plane
Polygon
Rectangle
RegularPolygon
ScrollingLines
Spectrogram
Sphere
SurfacePlot
Text
Tube
VisualNode
Volume
Windbarb
XYZAxis
- Module contents
- vispy.testing package
- vispy.util package
- Subpackages
- Submodules
- vispy.util.bunch module
- vispy.util.check_environment module
- vispy.util.config module
- vispy.util.eq module
- vispy.util.event module
- vispy.util.fetching module
- vispy.util.filter module
- vispy.util.fourier module
- vispy.util.frozen module
- vispy.util.gallery_scraper module
- vispy.util.keys module
- vispy.util.logs module
- vispy.util.osmesa_gl module
- vispy.util.profiler module
- vispy.util.ptime module
- vispy.util.quaternion module
- vispy.util.transforms module
- vispy.util.wrappers module
- Module contents
- vispy.visuals package
- Subpackages
- Submodules
- vispy.visuals.axis module
- vispy.visuals.border module
- vispy.visuals.box module
- vispy.visuals.colorbar module
- vispy.visuals.cube module
- vispy.visuals.ellipse module
- vispy.visuals.gridlines module
- vispy.visuals.gridmesh module
- vispy.visuals.histogram module
- vispy.visuals.image module
- vispy.visuals.image_complex module
- vispy.visuals.infinite_line module
- vispy.visuals.instanced_mesh module
- vispy.visuals.isocurve module
- vispy.visuals.isoline module
- vispy.visuals.isosurface module
- vispy.visuals.line_plot module
- vispy.visuals.linear_region module
- vispy.visuals.markers module
- vispy.visuals.mesh module
- vispy.visuals.mesh_normals module
- vispy.visuals.plane module
- vispy.visuals.polygon module
- vispy.visuals.rectangle module
- vispy.visuals.regular_polygon module
- vispy.visuals.scrolling_lines module
- vispy.visuals.spectrogram module
- vispy.visuals.sphere module
- vispy.visuals.surface_plot module
- vispy.visuals.tube module
- vispy.visuals.visual module
- vispy.visuals.volume module
- vispy.visuals.windbarb module
- vispy.visuals.xyz_axis module
- Module contents
Submodules#
Module contents#
Vispy is a high-performance interactive 2D/3D data visualization library. Vispy leverages the computational power of modern Graphics Processing Units (GPUs) through the OpenGL library to display very large datasets.
For more information, see http://vispy.org.
- vispy.set_log_level(verbose, match=None, return_old=False)#
Convenience function for setting the logging level
- Parameters:
- verbosebool, str, int, or None
The verbosity of messages to print. If a str, it can be either DEBUG, INFO, WARNING, ERROR, or CRITICAL. Note that these are for convenience and are equivalent to passing in logging.DEBUG, etc. For bool, True is the same as ‘INFO’, False is the same as ‘WARNING’.
- matchstr | None
String to match. Only those messages that both contain a substring that regexp matches
'match'
(and theverbose
level) will be displayed.- return_oldbool
If True, return the old verbosity level and old match.
See also
vispy.util.use_log_level
Notes
If
verbose=='debug'
, then thevispy
method emitting the log message will be prepended to each log message, which is useful for debugging. Ifverbose=='debug'
ormatch is not None
, then a small performance overhead is added. Thus it is suggested to only use these options when performance is not crucial.
- vispy.sys_info(fname=None, overwrite=False)#
Get relevant system and debugging information
- Parameters:
- fnamestr | None
Filename to dump info to. Use None to simply print.
- overwritebool
If True, overwrite file (if it exists).
- Returns:
- outstr
The system information as a string.
- vispy.test(*args, **kwargs)#
Proxy function to delay .testing import
- vispy.use(app=None, gl=None)#
Set the usage options for vispy
Specify what app backend and GL backend to use.
- Parameters:
- appstr
- The app backend to use (case insensitive). Standard backends:
‘PyQt4’: use Qt widget toolkit via PyQt4.
‘PyQt5’: use Qt widget toolkit via PyQt5.
‘PyQt6’: use Qt widget toolkit via PyQt6.
‘PySide’: use Qt widget toolkit via PySide.
‘PySide2’: use Qt widget toolkit via PySide2.
‘PySide6’: use Qt widget toolkit via PySide6.
‘PyGlet’: use Pyglet backend.
‘Glfw’: use Glfw backend (successor of Glut). Widely available on Linux.
‘SDL2’: use SDL v2 backend.
‘osmesa’: Use OSMesa backend
- Additional backends:
‘jupyter_rfb’: show vispy canvases in Jupyter lab/notebook (depends on the jupyter_rfb library).
- glstr
- The gl backend to use (case insensitive). Options are:
‘gl2’: use Vispy’s desktop OpenGL API.
‘pyopengl2’: use PyOpenGL’s desktop OpenGL API. Mostly for testing.
‘es2’: (TO COME) use real OpenGL ES 2.0 on Windows via Angle. Availability of ES 2.0 is larger for Windows, since it relies on DirectX.
‘gl+’: use the full OpenGL functionality available on your system (via PyOpenGL).
See also
vispy.app.use_app
vispy.gloo.gl.use_gl
Notes
If the app option is given,
vispy.app.use_app()
is called. If the gl option is given,vispy.gloo.use_gl()
is called.If an app backend name is provided, and that backend could not be loaded, an error is raised.
If no backend name is provided, Vispy will first check if the GUI toolkit corresponding to each backend is already imported, and try that backend first. If this is unsuccessful, it will try the ‘default_backend’ provided in the vispy config. If still not succesful, it will try each backend in a predetermined order.