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

What is the easiest way to achieve realtime plotting in pyqtgraph

I do not get how to achieve realtime plotting in pyqtgraph. The realisation of that is not implemented in the documentation yet. Could anyone please provide an easy example ?
dan_0
  • 599
  • 1
  • 5
  • 17
18
votes
2 answers

Plotting large arrays in pyqtgraph

For an electrophysiology data analysis set I need to plot a large 2D array (dim approx 20.000 x 120) of points. I used to embed a Matplotlib widget in my PyQt application, but went looking for other solutions because the plotting took quite long.…
jw_p
  • 325
  • 1
  • 3
  • 7
14
votes
1 answer

Pyqt4-pyqtgraph application recursively opens new instances of itself

I forked BMDanalyse for my project and have modified it. Setup Instructions in case you need a hand. Actual question follows this. A 64-bit system is required due to memory requirements. Please ensure you have 64bit Python 2.7. The following setup…
Frikster
  • 2,755
  • 5
  • 37
  • 71
13
votes
0 answers

How to update pyqtgraph image data when zooming, translating, resizing

I'm using PySide. Inside a QMainWindow, I have an ImageItem displayed inside a PlotWidget. Suppose I have a function generateImage(r, np) that can dynamically generate an image. The function returns a np x np array of pixels, for the image located…
Charles Brunet
  • 21,797
  • 24
  • 83
  • 124
12
votes
3 answers

Python pyqtgraph how to set x and y axis limits on graph, no autorange

I would like to know how I can set the x and y axis limits that are displayed for a pyqtgraph.GraphicsWindow.addPlot object. I need to display a lot of data inside a loop (hence using pyqtgraph) but I would rather preallocate my axes as opposed to…
Michael
  • 121
  • 1
  • 1
  • 4
12
votes
3 answers

Plotting Datetime objects with PyQtGraph

I am new to PyQtGraph and need help plotting datetime objects on the x-axis which can easily be done with matplotlib. Any help would be appreciated. As a simple version of what Id like to do see below where I want to plot the datetime objects…
RicDavimes
  • 345
  • 4
  • 16
11
votes
1 answer

How can I use DateAxisItem of PyQtGraph?

I'm using PyQtGraph '0.9.8+gd627e39' on Python 3.6.2(32bit) and Windows 10. My goal is to plot real time data with an X-axis that shows datetime. Time Value datetime.datetime(2018, 3, 1, 9, 36, 50,…
maynull
  • 1,936
  • 4
  • 26
  • 46
11
votes
5 answers

Error "QObject::startTimer: QTimer can only be used with threads started with QThread" many times when closing application

I know this has been asked many times before. I read all of those threads, and my case seems different. Everybody else who has this trouble has a few straightforward causes that I think I’ve ruled out, such as: Starting a timer with no event loop…
Johnny J
  • 113
  • 1
  • 1
  • 4
10
votes
4 answers

Show string values on x-axis in pyqtgraph

I want to display string values for ticks on x-axis in pyqtgraph. Right now I am unable to figure out how to do that. Ex: x = ['a', 'b', 'c', 'd', 'e', 'f'] y = [1, 2, 3, 4, ,5, 6] pg.plot(x, y) When I try to pass the string array to the x…
coder006
  • 525
  • 1
  • 6
  • 15
9
votes
3 answers

finplot as a widget in layout

I am trying to add finplot, https://pypi.org/project/finplot/, as a widget to one of the layouts in my UI. I created a widget for finplot and added it to the widgets in the layout but I get the following…
afp_2008
  • 1,940
  • 1
  • 19
  • 46
9
votes
3 answers

PyQtGraph opening then closing straight away

I'm running some basic code from the documentation import pyqtgraph as pg import numpy as np x = np.arange(1000) y = np.random.normal(size=(3, 1000)) plotWidget = pg.plot(title="Three plot curves") for i in range(3): plotWidget.plot(x, y[i],…
Definity
  • 691
  • 2
  • 11
  • 31
9
votes
5 answers

How to add custom AxisItem to existing PlotWidget?

I'm trying to add custom AxisItem in pyqtgraph to existing PlotWidget that was generated by Qt Designer. There is related topic here, but there is no exact answer with code example and I cannot comment, so I've created a new topic. This is my…
enclis
  • 375
  • 4
  • 11
9
votes
1 answer

Slider widget for PyQtGraph

Is it possible to get a slider widget for PyQtGraph? So that e.g. one or more widgets could control parameters from a plot. Like in this example below (made with enaml/chaco): I could find nothing like this in the examples or in the list of…
tiago
  • 22,602
  • 12
  • 72
  • 88
9
votes
1 answer

How to plot two real-time data in one single plot in PyQtGraph?

I am willing to get 2 random data and plot it in the same Widget using PyQtGraph in a real-time way. I want them to show up as Red and Blue dots. However, after a hard time, my script does not work. I would like to know what can I do in order to get…
Hugo Oliveira
  • 197
  • 2
  • 3
  • 8
9
votes
1 answer

How write \latex character in pyqtgraph?

I'm using pyqtgraph and I would like to write some formula on the graphs. How to write with the latex synthax? matplolib get its own TeX expression parser, but I can't find the solution for pyqtgraph.
Antoine
  • 173
  • 1
  • 7
1
2 3
65 66