I have heightmap data in an array that I'd like to visualize in 3D as a surface, a wireframe, or even just a 3D scatter plot (with the eventual goal of animating the evolution of that surface). I saw the "Scatter Plot" example under the "3D Graphics" header in the examples, but I can't seem to find any documentation on pyqtgraph.opengl.GLScatterPlotItem. I could follow the example directly, but I have all my data in numpy arrays, and it seems kind of silly (and potentially very slow) to iterate over the array to create a list of dicts containing the points.
I have heightmap data in an array that I'd like to visualize in 3D as a surface, a wireframe, or even just a 3D scatter plot (with the eventual goal of animating the evolution of that surface). I saw the "Scatter Plot" example under the "3D Graphics" header in the examples, but I can't seem to find any documentation on pyqtgraph.opengl.GLScatterPlotItem. I could follow the example directly, but I have all my data in numpy arrays, and it seems kind of silly (and potentially very slow) to iterate over the array to create a list of dicts containing the points.Is there alternative way to call GLScatterPlotItem with x,y,z data for the points?
Have a look at the latest revision (217). GLScatterPlotItem can now comfortably update 100k points in realtime (with modest hardware acceleration). The API is a bit different (accepts arrays, as you suggest).I hope to do the same for GLMeshItem soon..Luke
A little more about our application for reference: we are grabbing grayscale frames from a high speed camera (250 FPS) at 832x832 resolution and want to represent the data with a 3D visualization that's close to realtime (but even 30 FPS would be awesome). We will subsample the data since I think there's no point in trying to plot all 700K points. I'll take a crack at using the latest improvements in R218.
In the future, I would be interested in contributing to this package, though, since realtime data visualization is something I'm very interested and has a lot of uses around my research lab.
I have heightmap data in an array that I'd like to visualize in 3D as a surface, a wireframe, or even just a 3D scatter plot (with the eventual goal of animating the evolution of that surface).
Hello, I am new to pyqtgraph. I am trying to take a PySerial input from a microcontroller and plot the (x,y,z) coordinates into a scatter plot with this tool. Unfortunately, I can't find the "3D Graphics" header in the examples folder in the Python27 directory. Can you direct me to some examples for where 3D plotting is used with this tool? It would be great to see code that takes data from a serial input or from a .txt file.