Plotting time series data with PyQtGraph

Heads up! You've already completed this tutorial.

Mck_1 | 2020-05-07 16:45:39 UTC | #1

Hello I have a serious issue here and I can't find a solution any where else. I try to plot time series data on my PyqtGraph embedded to QT designer.

the only tutos I found with time series plot pyqtgraph are as follow : https://stackoverflow.com/questions/49046931/how-can-i-use-dateaxisitem-of-pyqtgraph

my question is how do we replace the

python
graph = pg.PlotWidget(axisItems = {'bottom': date_axis})

with

python
self.graphWidget = pg.PlotWidget(axisItems = {'bottom': date_axis})

The first works but the second does not. is it possible to show how you would add a timeseries on your example it would be SUPERUSEFUL because there is no any on google.


Create GUI Applications with Python & Qt5 by Martin Fitzpatrick — (PyQt5 Edition) The hands-on guide to making apps with Python — Over 10,000 copies sold!

More info Get the book

Well done, you've finished this tutorial! Mark As Complete
[[ user.completed.length ]] completed [[ user.streak+1 ]] day streak

Plotting time series data with PyQtGraph was written by Martin Fitzpatrick .

Martin Fitzpatrick has been developing Python/Qt apps for 8 years. Building desktop applications to make data-analysis tools more user-friendly, Python was the obvious choice. Starting with Tk, later moving to wxWidgets and finally adopting PyQt.