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
20
votes
4 answers

How do I display real-time graphs in a simple UI for a python program?

I have a complicated algorithm that updates 3 histograms that are stored in arrays. I want to debug my algorithm, so I was thinking of showing the arrays as histograms in a user interface. What is the easiest way to do this. (Rapid application…
Neil G
  • 32,138
  • 39
  • 156
  • 257
10
votes
2 answers

How to get world coordinates from screen coordinates in Vispy

I am not sure how to get from screen coordinates to world coordinates. I am using VisPy and I would like to implement ray tracing and picking ability in 3D. I prepared some code based on a cube example. The code below sends a crude ray through the…
MihaPirnat
  • 153
  • 1
  • 9
6
votes
1 answer

vispy visual.HistogramVisual

Going off of the examples/basics/visuals/graphy.py, I tried to display a histogram but failed: from vispy import app, visuals import wx import numpy as np class snrHistogram(app.Canvas): def __init__(self, *args, **kwargs): …
Ralph
  • 471
  • 5
  • 14
6
votes
1 answer

VisPy animation point by point from NumPy array

I'm wondering if something is possible using VisPy, or if I should start looking for other alternatives. Here's what's going on - I'm writing an undergraduate thesis on some of the paradox-like situations of Special Relativity. What I am doing is…
AstroJason
  • 71
  • 4
6
votes
1 answer

How to embed vispy graph in PyQt?

I'm trying to embed a vispy plot (more specifically, a Vispy SceneCanvas) as a QWidget into PyQt4. I would presume the answer would be something like this: from PyQt4.QtCore import * from PyQt4.QtGui import * import vispy.mpl_plot as plt app =…
Kyle Ellefsen
  • 73
  • 1
  • 8
5
votes
1 answer

How to pick the nearest marker from clicked point in vispy?

In vispy library I have a list of points shown as markers, and I want to change the color of(or just get the index of) the point which is nearest to the clicked point. I can get the pixels of the clicked point by event.pos, but i need its actual…
Atreyagaurav
  • 1,145
  • 6
  • 15
4
votes
1 answer

How to plot in real time with VisPy library?

I wrote a script for modeling the evolution of a pandemic (with graphs and scatter plots). I tried several libraries to display results in real-time (8 countries x 500 particles): Matplotlib (not fast enough) PyQtGraph (better but still not fast…
Skryge
  • 81
  • 1
  • 9
4
votes
1 answer

How to persuade visuals_at to look beyond ViewBox?

I'm currently evaluating vispy for my interactive plotting needs. While it feels a bit beta-ish I'm rather impressed with its speed. Also API design-wise it looks promising. One feature I'd need to work is picking plot elements with the mouse. There…
Paul Panzer
  • 51,835
  • 3
  • 54
  • 99
4
votes
0 answers

PyTorch: Render point cloud without CPU transfer?

I have a some data in pytorch on the GPU, say, x = torch.cuda.FloatTensor(500, 3).uniform_() Is there any way to render this as a point cloud (ala https://matplotlib.org/gallery/mplot3d/scatter3d.html) without first transferring the data to the…
Julius
  • 735
  • 2
  • 6
  • 17
4
votes
1 answer

How to get the position of the point in Vispy 3d plot?

I am beginner of the VisPy. All I want to do is: Click the point then this point will change color and print the position (x,y,z) of this point. But I can't find how to do this. Here is my code. import numpy as np import sys from vispy import app,…
Nina
  • 156
  • 1
  • 7
4
votes
1 answer

Efficiently Plotting Many Lines in VisPy

From all example code/demos I have seen in the VisPy library, I only see one way that people plot many lines, for example: for i in range(N): pos = pos.copy() pos[:, 1] = np.random.normal(scale=5, loc=(i+1)*30, size=N) line =…
Max Kanwal
  • 61
  • 6
4
votes
2 answers

How to export VisPy result as png image

Is it possible to save images made with VisPy? Maybe using vispy.io.imsave or vispy.write_png? Also, it is possible to plot matplotlib figures in vispy using vispy.mpl_plot but is it possible to use a vispy image in matplotlib? In any case, I…
jvtrudel
  • 1,235
  • 3
  • 15
  • 28
4
votes
3 answers

How can i import OpenGL in anaconda python?

I use ipython notebook on anaconda python but i have no idea how to install or import opengl. Can anyone help me solve this ? I use anaconda on linux xubuntu. Sorry for bad english.
kekhuay
  • 377
  • 2
  • 3
  • 17
3
votes
0 answers

Updating a SceneCanvas with on_timer in VisPy

I'm trying to write a vispy program that will display an image and superimpose two circles on top; ultimately the information for both of these will come from real-time data steams. To start with, I'm trying to write something that will just…
jdbrody
  • 533
  • 7
  • 16
3
votes
1 answer

How to embed vispy canvas in PyQt5 frame

Hey I want to embed the output window of vispy canvas in my pyqt5 generated Gui. I don't know much about vispy so please help thanks in advance.
Abhinav rawat
  • 111
  • 2
  • 13
1
2 3
8 9