Skip to content Skip to sidebar Skip to footer

Efficiently Plot Large Data Sets With Pyqtgraph

I'm trying to generate a matrix of scatter plots and histograms with pyqtgraph. The input (x and y values) for each scatter plot are numpy arrays of length greater than 1,000,000.

Solution 1:

Your code looks fine. Depending on your system, scatterplot efficiency degrades around 10k to 100k points for pyqtgraph. If you really want to continue using pyqtgraph, all I can recommend is to subsample your data by 10x to 100x.

The amount of data you want to visualize almost requires GPU acceleration, so Galry is a good tool to use here. FYI, the developers of pyqtgraph, Galry, and a few other python graphics libraries are working together on VisPy, which is not quite ready for use, but should be a very good option in the future. PyQtGraph will also be using VisPy to provide GPU acceleration in the future.

Post a Comment for "Efficiently Plot Large Data Sets With Pyqtgraph"