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
2
votes
1 answer

Is possible to draw more than one object in vispy gloo?

I have been trying to render two objects at the same time, but I don't find the right way. The way I'm proceeding is by creating two different position vector matrix "V1" and "V2" for being able to move them independently inside the timer…
zaccaro
  • 93
  • 7
2
votes
0 answers

Vispy gloo can't draw GL_TRIANGLE_STRIP

I'm trying to set up a basic environment for pyGLFW + Vispy + PyOpenGL. When trying to draw, I get RuntimeError: OpenGL got errors (periodic check): GL_INVALID_OPERATION Traceback: File…
Emilgardis
  • 480
  • 4
  • 11
2
votes
3 answers

Rotating Large Arrays, Fastest Possible

I am relatively new to Python and looking for best optimized code for rotating large multi-dimensional arrays. In the following code I have a 16X600000 32bit floating point multi-dimensional array and according to the timer it takes about 30ms to…
JMD
  • 31
  • 5
2
votes
2 answers

Unable to freeze application when vispy/scipy in use

I have an application in which I added a module that plots data using vispy and scipy (for Delaunay). It works fine when I run within the Python (3.4 x64 on Windows) interpreter, but not when frozen using cx_freeze. It does not give me any error…
gmas80
  • 1,218
  • 1
  • 14
  • 44
2
votes
2 answers

Interactive Data Visualiation - Python

I've been working with data visualization using Python. To do such think, I've been using Matplotlib to get the visualizations. However, now I have some demand to provide more interactive visualization, besides a complete GUI. I'm wondering how…
pceccon
  • 9,379
  • 26
  • 82
  • 158
1
vote
1 answer

How to draw multiple rectangles using Vispy?

I referred to this example : https://vispy.org/gallery/scene/polygon.html#sphx-glr-gallery-scene-polygon-py I want to draw multiple same shaped rectangles, but I don't understand how to set the coordinates. cx, cy = (0.2, 0.2) halfx, halfy = (0.1,…
maynull
  • 1,936
  • 4
  • 26
  • 46
1
vote
1 answer

Vispy canvas can not be set to transparent background when given a rgba color

I have a pyqt5 app that sets a Vispy widget as top layer and a QGrapchisView as the bottom layer. I draw a sample line in both canvas with similar geometry. Problem Even when setting the rgba with an alpha channel as zero or close to zero, the…
MBV
  • 591
  • 3
  • 17
1
vote
2 answers

Pick different colors based on array size

I have a numpy array size of 20 and I want to give each element a color when plotting point cloud data = np.array([1,2,3,4,5,6,7,8,9,10,20, 19, 18, 17, 16, 15, 14, 13,12,11]) colors # different colors colors[data] I'd like to create colors so…
1
vote
2 answers

How to know the exact position of a camera viewbox in Qt?

I am working with OpenGL in python and trying to attach 2d images to a canvas (the images will change according to a certain frequence). I managed to achieve that but to continue my task i need two things: the major problem: I need to get the image…
Josh.h
  • 71
  • 1
  • 13
1
vote
0 answers

Using vispy canvas within pyqtgaph viewbox

I am using pyqtgraph.ImageView to visualize data. I need to smooth transition in my image with vispy like in this photo: Do you know any way to get this kind of result with pyqtgraph or any way to integrate vispy canvas into pyqtgraph.ImageView?
1
vote
1 answer

Vispy: Using timers for visualizations wrapped in functions/classes

I am currently working on using Vispy to add visualization capabilities to a Python simulation library. I have managed to get some basic visualizations running with the data from the simulations, and am now looking at wrapping it in…
H_Boofer
  • 413
  • 1
  • 3
  • 13
1
vote
1 answer

Vispy: 2D coordinate (x,y) of a point of an image inside a SceneCanvas

I am working on a program that can display an image on a SceneCanvas and also allow users to click on an image to get an intensity of the point. My question is if there exist a way to get the coordinate X, Y of a point of an image in SceneCanvas.…
Loc Tran
  • 11
  • 1
1
vote
1 answer

How to convert visuals image to polar using Vispy

I am trying to convert my visual image to Polar form using Vispy Something similar to below images.. Original Image generated using below code of Vispy scene.visuals.Image(self.img_data,interpolation=interpolation,parent = self.viewbox.scene,…
ViNOJ
  • 15
  • 5
1
vote
1 answer

How to set widget for vispy use

I know this question has been asked in a couple ways but I cannot figure it out on my specific use case. I used QT designer (pyQT 5.15) to create a layout and would like to use vispy as the display. After reading it seemed I had to set a widget but…
Robin White
  • 159
  • 2
  • 11
1
vote
0 answers

Set a vispy auto zoom that shows all items on screen like pyqtgraph autoRange() function

Is it possible to implement an auto range function for vispy like we have for pyqtgraph? I have search but can't find any or an alternative way to implement it. Here is the sample code from itertools import cycle import numpy as np from vispy…
SorinT
  • 53
  • 1
  • 6
1 2
3
8 9