Questions tagged [pyqtgraph]

High-performance scientific graphics for PyQt.

PyQtGraph is a pure-python graphics and GUI library built on PyQt4 / PySide and numpy. It is intended for use in mathematics / scientific / engineering applications. Despite being written entirely in python, the library is very fast due to its heavy leverage of numpy for number crunching and Qt's GraphicsView framework for fast display. PyQtGraph is distributed under the MIT open-source license.

987 questions
6
votes
1 answer

Fast, Real-time plotting of points using pyqtgraph and a LiDAR

I want to create a real-time, point plotting GUI. I am using the Scanse Sweep LiDAR, and at each sweep of this LiDAR (working between 1 - 10Hz) I receive approximately 1000 points (x, y) describing the LiDARs surrounding. This is a 2D LiDAR. I have…
Netsiniksam
  • 123
  • 1
  • 1
  • 11
6
votes
2 answers

python realtime plot using pyqtgraph

I need to plot in realtime a series floating point numbers from the serial port. These values are sepparated by the '\n' character, so the data sequence is something like this: x1 x2 x3 ... How would you plot the…
fmarengo
  • 351
  • 1
  • 2
  • 7
6
votes
1 answer

How to keep PyQt Grid elements from resizing and maintain even spacing of all widgets?

I am having some trouble keeping the size even across all elements in my gridLayout. Ocasionally the inner widgets just completely change size after I update the plot data (on both width and height), and especially after maximizing/minimizing or…
Logic1
  • 1,806
  • 3
  • 26
  • 43
6
votes
2 answers

How to draw "two directions widths line" in matplotlib

How to use matplotlib or pyqtgraph draw plot like this: Line AB is a two-directions street, green part represents the direction from point A to point B, red part represents B to A, width of each part represents the traffic volume. Widths are…
Macer
  • 313
  • 1
  • 10
6
votes
1 answer

pyqtgraph: save / export 3d graph

I have plotted a 3D graph with pyqtgraph, and I want to save / export it. A right mouse click on the 3D plot doesn't open any context menu which would allow me to save the plot. The doc at http://www.pyqtgraph.org/documentation/exporting.html tells…
calocedrus
  • 2,430
  • 20
  • 25
6
votes
3 answers

Issue in setting the background color in pyqtgraph

I've got an issue when using the pyqtgraph module in python. When I put a white background color to a glscatterplot, the scatter dots just vanish. It is like if the color of background was added to the color of the scatterplot therefore everything…
ymmx
  • 4,769
  • 5
  • 32
  • 64
6
votes
3 answers

PyQtGraph - how do I close a plot window/close all plot windows?

I tried pg.close() but that didn't work, couldn't find it in the manual. I produce plots in a loop, so I'd like to close them all at the end of each loop (instead it pops a new window open until my computer goes nuts).
cjm2671
  • 18,348
  • 31
  • 102
  • 161
5
votes
1 answer

PyQtGraph stops updating and freezes when grapahing live sensor data

I am using PyQt5 and pyqtgraph to plot live sensor data. This graph is part of a bigger PyQt5 application which is used to interact with various hardware and also visualize the sensor data. Background: Below code is a very simplified example for the…
Zythyr
  • 1,142
  • 4
  • 20
  • 33
5
votes
3 answers

How can I launch pyqt GUI multiple times consequtively in a process?

How can I architect code to run a pyqt GUI multiple times consecutively in a process? (pyqtgraph specifically, if that is relevant) The context A python script that performs long running data capture on measurement equipment (a big for loop).…
Ivan
  • 7,436
  • 1
  • 21
  • 21
5
votes
1 answer

draggable line with multiple break points

I have a application very similar to the following question:Draw half infinite lines? I would like to have a infinite line with multiple thresholds. The solution provided in the question is a great starting point:…
SunnyIsaLearner
  • 750
  • 2
  • 13
  • 26
5
votes
2 answers

Using PyQtGraph my Surface Plot displays in the bottom left quarter of the window.

Here is my code. from pyqtgraph.Qt import QtGui import numpy as np import pyqtgraph.opengl as gl from netCDF4 import Dataset import sys def main(): app = QtGui.QApplication(sys.argv) w=gl.GLViewWidget() w.show() …
jcarilli
  • 71
  • 4
5
votes
3 answers

pyqtgraph: synchronize scaling of axes in different plots

I want to synchronize the X-Axis of several pyqtgraph plots. When the user rescales the X-Axis with mouse interactions (e.g. scroll-wheel while mouse on x-Axis) I want to assign the same changes to all the other plots. So how do I do this? I…
user_na
  • 2,154
  • 1
  • 16
  • 36
5
votes
2 answers

How to get basic interactive pyqtgraph plot to work in IPython REPL or Jupyter console?

Typing import pyqtgraph as pg pg.plot([1,2,3,2,3]) into the standard Python REPL opens a window containing a plot of the data. Typing exactly the same code into the IPython REPL or the Jupyter console, opens no such window. [The window can be made…
jacg
  • 2,040
  • 1
  • 14
  • 27
5
votes
2 answers

Live Plotting with PyQtGraph in PyQt4

I am quite new in Python and TRYING to make a PyQt4 app, where I am embedding PyQtGraph in it. I've got this PyQtGraph live plotter that works fantastically: from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph as pg import random app =…
Ivy
  • 175
  • 2
  • 14
5
votes
2 answers

Embedding "Figure Type" Seaborn Plot in PyQt (pyqtgraph)

I am using a wrapper of PyQt (pyqtgraph) to build a GUI application. I wish to embed a Seaborn plot within it using the MatplotlibWidget. However, my problem is that the Seaborn wrapper method such as FacetGrid do not accept an external figure…
Hanan Shteingart
  • 8,480
  • 10
  • 53
  • 66
1 2
3
65 66