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

Display Average in PyQtGraph

I'm curious on how to use the average feature in PyQtGraph (accessible through the context menu Plot Options > Average). What I would expect to happen: I have a plot with a curve, that continuously updates. When I activate average I can choose over…
erik
  • 619
  • 1
  • 11
  • 20
4
votes
1 answer

How to obtain the highest sample rate possible in Raspbery Pi using a ADC?

I am working in a project using Raspberry Pi 3 B where I get data from a IR sensor(Sharp GP2Y0A21YK0F) through a ADC MPC3008 and display it in real-time using PyQtgraph library. The datasheet of the ADC says that at 5.0V, the sampling rate is…
Hugo Oliveira
  • 197
  • 2
  • 3
  • 8
4
votes
2 answers

How to take the derivative of a Signal in Python?

I am new at Python language and coding. I am trying to acquire and differentiate a live signal from a Arduino UNO Board using the USB Serial. So far, I am acquiring the data with no problems, but I cant get information about how to differentiate…
Hugo Oliveira
  • 197
  • 2
  • 3
  • 8
4
votes
1 answer

Is it possible to use FillBetweenItem to fill between two PlotCurveItem's in pyqtgraph?

I'm attempting to fill between two curves that were created using PlotCurveItem in pyqtgraph. phigh = self.p2.addItem(pg.PlotCurveItem(x, y, pen = 'k')) plow = self.p2.addItem(pg.PlotCurveItem(x, yy, pen = 'k')) …
Mike C.
  • 1,761
  • 2
  • 22
  • 46
4
votes
3 answers

pyqtgraph - Is it possible to have a ImageView without histogram?

I currently have a ImageView showing a Dicom image, but i don't want that histogram on the side. And with possible,move those two buttons to another place. How can I make that?
depaulagu
  • 139
  • 2
  • 7
4
votes
1 answer

PyQtGraph Graphics Layout Widget issue

I'm trying to create a plot layout using PyQtGraph within a PyQt application. I need a single row with two plots the first two columns wide and the second a single column wide. Reading the docs I presumed something like this would work: # Create the…
BMichell
  • 3,581
  • 5
  • 23
  • 31
4
votes
2 answers

pyqtgraph documentation example doesn't work with PySide

I'm starting to use pyqtgraph. I tried running the example code below, but it gives an error. This example code came from this page in the documentation. The only change I made was to import QtGui from PySide instead of PyQt4, which the comments…
stochastic
  • 3,155
  • 5
  • 27
  • 42
4
votes
2 answers

Displaying pyqtgraph and pyqt widgets on web

Is there a way to take existing python pyqtgraph and pyqt application and have it display on a web page to implement software as a service? I suspect that there has to be a supporting web framework like Django in between, but I am not sure how this…
Ivan
  • 7,448
  • 14
  • 69
  • 134
4
votes
1 answer

pyqtgraph, plotting time series

I'am trying to plot time serie with pyqtgraph. I've read this, this and this. But i'am not sure how to correctly use it. My plot is a plot widget, and i use it this way: graph.plot(aerosol_data, pen=pg.mkPen(color=colors[count], width=1,…
beni
  • 105
  • 3
  • 9
4
votes
2 answers

PyQtGraph grid with linked axes

Having a simple graphics layout with PyQtGraph in which the x-axis of the plots are linked together and the grid is displayed in both plots as well: from pyqtgraph.Qt import QtGui, QtCore import…
Peque
  • 13,638
  • 11
  • 69
  • 105
4
votes
1 answer

How to set logarithmic scale and axis limits in HistogramLUTItem in pyqtgraph

I'm using pyqtgraph for a live view of a camera acquisition program. Most of the times my images are composed of a lot of background noise and a signal of just a few pixels with higher intensity. For that reason, the part of the HistogramLUTItem…
Federico Barabas
  • 659
  • 8
  • 21
4
votes
1 answer

Multiple updating plot with pyqtgraph in Python

I have to plot 3 updating curves of data I read from a sensor. The updating plot is very fast when I use just a curve but when I try to plot them all each of them is drastically slower. The code I use is following: #!/usr/bin/python from…
cyberdyne
  • 426
  • 3
  • 5
  • 23
4
votes
1 answer

PyQtGraph PlotWidget : how to force each draw (changing range) for "real time" plotting

I'm trying to make a PlotWidget moving (from left to right) really fast like if it was an electrocariogram. Here's an example of what i want (except that he used PyQwt (which is incompatible with my projet because I use PySide (and not PyQt) and…
user3369214
  • 421
  • 1
  • 9
  • 21
4
votes
2 answers

Python 3.3 pyqtgraph can't plot points

Is it me, or is it impossible to plot points (scatterplot) in pyqtgraph using Python 3.3? I have quite big data*, and find matplotlib way too slow, so I would like to give this a try: 1) pyqtgraph.plot([1],[1]) shows nothing in the plot. 2)…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
4
votes
1 answer

Histogram with counts along y axis in pyqtgraph?

The pyqtgraph examples include how to histogram with the variable along the x-axis and the counts along the y-axis, as shown below. Is there a way to have the variable run along the y-axis and the counts along the x-axis, with fillLevel filling to…
well
  • 647
  • 1
  • 8
  • 20