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

How to clear a plot in a `while` loop when using PyQtGraph?

I am using PyQtGraph for a speedy visualization of my data acquisition. For this I am redrawing the data constantly using a while loop. A simplified version of this code is given by: import time import numpy import pyqtgraph as pg from pyqtgraph.Qt…
The Dude
  • 3,795
  • 5
  • 29
  • 47
5
votes
1 answer

None values in pyqtgraph

I am trying to make a graph from a data which includes null value (data from pandas) using pyqtgraph. pyqtgraph - yellow circle has null values graph using excel i want the graph using pyqtgraph to be the same as the excel graph. in other words…
vaughn
  • 71
  • 1
  • 7
5
votes
2 answers

Using pre-downsampled data when plotting large time series in PyQtGraph

I need to plot a large time series in PyQtGraph (millions of points). Plotting it as is is practically impossible and when turning on the optimization options (downsampling using setDownsampling and clipping using setClipToView) it is still barely…
Andrzej Pronobis
  • 33,828
  • 17
  • 76
  • 92
5
votes
1 answer

pyqtgraph: Multiple y-axis on left side?

I have found the MultiplePlotAxes-example in pyqtgraph and extended it with one more y-axis (see code below). So there are 3 y-axis on the right side now. Is there a way to get all 3 y-axis from the right side to the left side so that there are in…
Piet
  • 271
  • 2
  • 8
5
votes
2 answers

How to set a PyQtGraph GraphicView window to maximized state

I am trying to create a GraphicView() window to open in "maximized" state in order to fill the entire screen. But I didn't find so far any clue in PyQtGraph's documentation on how to do it I managed to use resize(1420,820) to get it to work on my…
jmb_louis
  • 1,055
  • 2
  • 13
  • 15
5
votes
1 answer

Live Data Monitor: PyQtGraph

I am working on a project where I will have to analyse signals coming from a device. I have a library working which gets me data from the device. As of now, I am collecting the data and then plotting it. I am interested in building a live data…
user1955184
  • 599
  • 1
  • 5
  • 18
5
votes
1 answer

implementing pyqtgraph for live data graphing

I am trying to get a live plot of data as it is being collected by an instrument using pyqtgraph. The data collection is handled by the main process this is then passed over a connection to a subprocess that plots it. I am just trying to pass the…
EOF
  • 53
  • 1
  • 1
  • 6
5
votes
1 answer

How to draw crosshair and plot mouse position in pyqtgraph?

I am new to Python and pyqtgraph. I am working on a viewer for different kinds of signals. Currrently I got stuck when I want to include a crosshair and a text label with the mouse position. I am working with GridLayout, because later the graph is…
Michael
  • 97
  • 2
  • 7
5
votes
1 answer

Implementing pyqtgraph multiprocessing into a pyqt widget

I am trying to plot images on a GUI that I am designing in Python. The full program will be collecting image data from a camera and then displaying the images on the GUI. I have explored using matplotlib, but it was too slow for my application. I…
Mink
  • 438
  • 8
  • 14
4
votes
1 answer

adding item/action to pyqtgraph PlotWidget context menu

I'm new to python and pyqt5/pyqtgraph. Trying to add an action/item to the context menu of a PlotWidget using the code below. The New_Item appears overlaid on top of the "View All" item in the context menu [have picture, but as a new user, not…
TM 1001
  • 41
  • 2
4
votes
1 answer

PyQtGraph when show in a different screen misalign axis

Does anyone have any idea how to fix this? On my desktop screen this is how the plot looks like: However once I drag the graph to my monitor the points become misaligned and the axis is not complete.
binverted
  • 73
  • 3
4
votes
2 answers

How to stop display resolution from affecting axes in pyqtgraph plots

I am using pyqtgraph to plot some data and noticed that when I move the plot from my laptop screen to a second monitor, the scaling on the plot is affected: laptop monitor: external monitor: notice that the axes got "compressed", and the plot is…
jrive
  • 218
  • 2
  • 3
  • 14
4
votes
3 answers

Is it possible to use pyqtgraph functions to plot inline on Jupyter Notebook?

I am trying to use Pyqtgraph to plot some image arrays on Jupyter notebook, but I am having some problems. Basically, I'm using the following code: import pyqtgraph as pg %gui qt pg.image(recon_array_a[0]) This is giving me what I need but is…
Gabriel Schubert
  • 165
  • 4
  • 12
4
votes
1 answer

How to set the PlotWidget Tick Color in PyQt5?

I'm trying to set the style the axis of a pyqtgraph.PlotWidget plotting area. I'm using: font =…
Alexis R Devitre
  • 288
  • 2
  • 6
  • 21
4
votes
1 answer

Restore zoom to default level after mouse interactions in pyqtgraph

Is there a way to restore the default zoom level for pyqtgraph plots. I know about the small button that is displayed in the plot (bottom left corner of the plot) that restores the default zoom level. What I need is I want to restore it (after I…
tonyjosi
  • 717
  • 1
  • 9
  • 17