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.


PyQt/PySide 1:1 Coaching with Martin Fitzpatrick — Save yourself time and frustration. Get one on one help with your Python GUI projects. Working together with you I'll identify issues and suggest fixes, from bugs and usability to architecture and maintainability.

Book Now 60 mins ($195)

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

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. Martin founded PythonGUIs to provide easy to follow GUI programming tutorials to the Python community. He has written a number of popular Python books on the subject.