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.


1:1 Coaching & Tutoring for your Python GUIs project
Martin Fitzpatrick Python GUIs Coaching & Training
60 mins ($195) Book Now

1:1 Python GUIs Coaching & Training

Comprehensive code reviewBugfixes & improvements • Maintainability advice and architecture improvements • Design and usability assessment • Suggestions and tips to expand your knowledgePackaging and distribution help for Windows, Mac & Linux • Find out more.

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.