Questions tagged [vispy]

Vispy is a high-performance interactive 2D/3D data visualization library. Vispy uses the OpenGL library to access the power of modern GPUs to display very large datasets.

Vispy is a high-performance interactive 2D/3D data visualization library. Vispy uses the OpenGL library to access the computational power of modern Graphics Processing Units (GPUs) to display very large datasets. Vispy can be used for:

  • High-quality interactive scientific plots with millions of points.
  • Direct visualization of real-time data.
  • Fast interactive visualization of 3D models (meshes, volume rendering).
  • OpenGL visualization demos.
  • Scientific GUIs with fast, scalable visualization widgets (Qt or IPython notebook with WebGL).

References:

132 questions
0
votes
1 answer

Adding a PyQT5 gui over a vispy simulation

I currently have two files, one using PyQt5 to create a simple GUI layout of data pulled from a JSON file, and another file using vispy to open a simulation. How can I get the GUI to overlay the simulation? I currently have tried importing the GUI…
src
  • 1
0
votes
1 answer

How can I apply a transformation several times on a vispy mesh object?

I am trying to rotate a cube by pressing 'z' on my keyboard using vispy. However, I would like that cube to rotate everytime I press 'z', which is not the case right now : it only rotates the first time I press it and then, when I press it again,…
0
votes
0 answers

How to set different point sizes in VisPy?

This is an example that I referred to : https://github.com/vispy/vispy/blob/d7763448dd398e5dab91cc21db7378c1aa707c63/vispy/visuals/line/line.py#L273 class _GlPoint(Visual): VERTEX_SHADER = """ #version 120 varying vec4 v_color; …
maynull
  • 1,936
  • 4
  • 26
  • 46
0
votes
1 answer

How can I modify the face colors of a mesh object with vispy when they're already set?

I've got a problem trying to modify the colors of the faces of my Mesh cube with vispy. I an using the set_face_colors() method but it's not working. I think I just don't know how to use it properly... Here's my code. The goal really is just…
0
votes
1 answer

Vispy Axis starts in wrong position before PAN/ZOOM

I am trying to show X Y axis for an image. Axis information of the image shows incorrectly before pan/zoom activity. But as soon as you pan or zoom the image, axis comes out properly. Below I was able to replicate same issue with Embed Vispy into QT…
ViNOJ
  • 15
  • 5
0
votes
1 answer

QgraphicsView slow line render

I have been trying to make a line viewer in PyQt5, the main process is to load a geopackage file using geopandas and adding it to a QGrapihcsView scene. The QGrapichsView class is a zoom and pan capable. For this example I used a generic line…
MBV
  • 591
  • 3
  • 17
0
votes
0 answers

find the graph in the network where the clicked node belongs to in vispy

I'd like code to show, when I click on the node of a graph network it highlights the graph that the node belongs to in vispy I tried this code but the node doesn't get colored nor the neighbored nodes def on_mouse_press(event): if…
0
votes
1 answer

Vispy error with plotting 2d data: UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d

I am new to Vispy and I want to plot the 2d data with 3 columns in Vispy but my code keeps giving me this error, I even tried the example code here: example code and it doesn't work, is it a graphic card thing. How to fix it? return…
Joseph_
  • 39
  • 6
0
votes
1 answer

how to add colored lines with opencv after covnersion from grayscale to color (vispy)

I have the following problem. I need to import grayscale images and add some colored lines in the image at distinct positions (prefered colors are red or blue because they are visible) I thought of converting the photo to rgb and then add…
Josh.h
  • 71
  • 1
  • 13
0
votes
1 answer

OpenGL Canvas. how to move an object inside a canvas

I want to move the following red cross in the canvas with the mouse events. it should only move when we click on it and drag it with the move. it should stop moving when we release the mouse. I do get the events of the mouse. but I don't know how i…
EricD1990
  • 33
  • 1
  • 5
0
votes
0 answers

Vispy - set scene.visuals edge or face color

I'd like to dynamically change the color parameters of a cube or sphere, I'm working from the sphere example and trying to set as seen below: However, what I end up seeing is the parameter I'm setting being removed entirely and not updated. import…
0
votes
1 answer

Vispy surface plot highlight particular section with color and image

Question 1: I am trying to highlight particular section from Vispy Surface Plot example in a particular colour somewhat similar to below modified image. Question 2: Similarly I would like to add an image data as overlay texture to the Vispy surface…
ViNOJ
  • 15
  • 5
0
votes
0 answers

Vispy: Implementing a time slider for playback control of a visualization embedded in QT GUI

I have been having a quick play around with embedding my Vispy code into a Qt-based visualization, based on the example code in the Vispy gallery by @djhoese. I have it working using timer events in a background thread to run the data generation. My…
H_Boofer
  • 413
  • 1
  • 3
  • 13
0
votes
2 answers

How to plot many 3D cubes with different colors and opacities

Goal I want to plot a large number of cubes (arranged in a 3D grid) with different colors and opacities. Current State and question I have come up with a solution using vispy, but the performance is very poor - drawing takes very long and the window…
Samufi
  • 2,465
  • 3
  • 19
  • 43
0
votes
0 answers

Vispy: How to draw only one quarter of a plane

I want to show only 1 quarter of a plane, is there any method to do that? I've tried all options of visuals.Plane() but not successfully. I also tried to change value of vertices['color'] and the result is same. Here is my code: import vispy from…
Odirection
  • 31
  • 3
1 2 3
8 9