How to plot csv file data: PyQt5 tutorial - Part 06

  Рет қаралды 15,841

PyShine

PyShine

3 жыл бұрын

Embed Matplotlib in PyQt5. The video is part 06 of PyQt5 GUI learning series. It contains instructions to make a csv file data plotting application. All columns of the data will be plotted and the header of each column will be labeled in the legend. The legend is draggable. Various themes are added to the Combo box widget. A user can select any theme for the plot. In this way, you will learn how to use PyQt5 designer to make GUI with combo box, properly selecting horizontal and vertical spacing, and the layouts. This application is very useful in generating rapid plots for various time series data as well.
Python version: 3.6.5
Matplotlib version: 3.2.1
Basic GUI design: PyQt5 tutorial - Part 01: • Basic GUI design: PyQt...
Adding Widgets to GUI: PyQt5 tutorial - Part 02: • Adding Widgets to GUI:...
Control GUI Widgets: PyQt5 tutorial - Part 03: • Control GUI Widgets: P...
Calculator GUI: PyQt5 tutorial - Part 04: • Calculator GUI: PyQt5 ...
OpenCV and PyQt5: PyQt5 tutorial - Part 05: • PyQt5 and OpenCv: PyQt...
Code: pyshine.com/Make-GUI-With-Mat...
Python installation: • Tutorial for Python be...
PyQt5 and other useful installations: • Screen recorder in PyQ...
OpenCV installation: • How to install opencv ...
Music: www.bensound.com

Пікірлер: 37
@SHONNER
@SHONNER 3 жыл бұрын
Thank you for this. Trying out CSV files that I have right now.
@maxhdz11
@maxhdz11 3 жыл бұрын
This is the good stuff ;) subscribed
@eltonrobaina1926
@eltonrobaina1926 2 жыл бұрын
Fantastic tutorial, excellent methodology!!! Thank you very much!
@user-yh8qg1ug6x
@user-yh8qg1ug6x 3 жыл бұрын
very very useful video thanks a lot you are my savior!
@pyshine_official
@pyshine_official 3 жыл бұрын
So glad it was helpful!
@ThomasHaberkorn
@ThomasHaberkorn 3 жыл бұрын
Hi, thanks for the continued support! The lessons learned from this videos are very useful. This video shows how to integrate matplotlib into a PyQt5 environment.. Is is possible in addition to integrate matplotplib widgets? Specifically, the RangeSlider widget: from matplotlib.widgets import RangeSlider. I almost got it done using your code as a template, however, the mouse events aren't passed on to the RangeSlider . Any insights appreciated
@pyshine_official
@pyshine_official 3 жыл бұрын
Hi, Yes its possible, Multiple Matplotlib widgets can be added in the same way as in the above video. For slider input the widget can be added in a way similar to the video related to Video processing GUI at pyshine.com
@arunabhsingh9129
@arunabhsingh9129 2 жыл бұрын
Thanks for the video again, could you help me with getting multiple such canvasses which could then read data from different .csv files?
@wonderman2864
@wonderman2864 2 жыл бұрын
Hello, this is a great job! This video helped me a lot to do my project! Thank You so much. Can you please plot a csv file data using scatter as well in pyqt5?
@pyshine_official
@pyshine_official 2 жыл бұрын
You're welcome and thanks for pointing out, we can use plt.scatter function
@fxois3318
@fxois3318 2 жыл бұрын
Seems to work in python 3.10, thank you so much ! Would it be possible by to add dynamically checkboxes that allows to hide/display individually each one of the curves of the csv file ?
@pyshine_official
@pyshine_official 2 жыл бұрын
Yes it is possible
@AkshatJain-fh9zn
@AkshatJain-fh9zn 3 жыл бұрын
Hey, you have done a great job! Can you provide a link to your source code? I'm also building a pyqt5 application and want to use interactive map for timeseries data. Your video inspired me a lot :)
@pyshine_official
@pyshine_official 3 жыл бұрын
Hello! So glad to hear it. You can find the source code in the description under video. pyshine.com/Make-GUI-With-Matplotlib-And-PyQt5/
@pablokrahl5481
@pablokrahl5481 2 жыл бұрын
Hi, thanks for this awesome video. How can a plot the x-axis as one of the columns of the CSV file? For example, if a have (time, velocity) table. Thanks
@pyshine_official
@pyshine_official 2 жыл бұрын
You're welcome! Please try the main_vsall.py code in this link pyshine.com/Drag-and-Drop-CSV-file-with-axis-selection-gui/. Any column can be selected as x axis and plot other as well
@pablokrahl5481
@pablokrahl5481 2 жыл бұрын
@@pyshine_official Thanks a lot and congratulations on the precious work! Best wishes
@colsoft09
@colsoft09 3 жыл бұрын
Thanks for this great tutorial. You have done a good job. I have only one problem. When I open a CSV file, it plots alright in the window but it pops out another window titled Figure 1, but it has no plot in it. What can be the problem?
@pyshine_official
@pyshine_official 3 жыл бұрын
Hi! most welcome! Please use Matplotlib version 3.2.1 and Python 3.6.5 . Also which OS you are using? You can install the matplotlib as: pip3 install matplotlib==3.2.1
@user-yh8qg1ug6x
@user-yh8qg1ug6x 3 жыл бұрын
Not sure if you need it or not, it's a spyder IDE problem just add plt.ioff() in the code will solve it.
@bitabehboodi5121
@bitabehboodi5121 Жыл бұрын
I want to get a csv file from the user and connect it to the machine learning project. Can you help me about that?
@pyshine_official
@pyshine_official Жыл бұрын
Simply read csv via pandas library as a data frame df the df will be like a dictionary where keys will be colums and values will be vectors or lists. Use pd.read_csv() function
@mohamedsamehmohamedzaki
@mohamedsamehmohamedzaki 3 жыл бұрын
is there a video on how to plot real time data?
@pyshine_official
@pyshine_official 3 жыл бұрын
pyshine.com/PyQt5-Live-Audio-GUI-with-Start-and-Stop/
@1UniverseGames
@1UniverseGames 3 жыл бұрын
Nice video, I actually have a problem. After clicking a csv file, I'm not getting the csv file imported, what did I miss, I wrote whole code by watching it
@pyshine_official
@pyshine_official 3 жыл бұрын
Hi! Please copy the code from pyshine.com/Make-GUI-With-Matplotlib-And-PyQt5/
@pyshine_official
@pyshine_official 3 жыл бұрын
Also it is highly recommended to install matplotlib version 3.2.1
@1UniverseGames
@1UniverseGames 3 жыл бұрын
@@pyshine_official thanks for the response. Yes I'm using the 3+ version
@pyshine_official
@pyshine_official 3 жыл бұрын
@@1UniverseGames Glad to help! Please copy paste the error here. Also to resolve the issue write the exact versions of PyQt5 and Matplotlib here.
@8796868489
@8796868489 2 жыл бұрын
ImportError: cannot import name 'Qtcore' from 'PyQt5' I am getting this error.
@pyshine_official
@pyshine_official 2 жыл бұрын
Paste full traceback errors here
@8796868489
@8796868489 2 жыл бұрын
@@pyshine_official Traceback (most recent call last): File "C:\Users\Ketan\Desktop\Kedarnath\maingui.py", line 17, in from PyQt5 import Qtcore, QtWidgets ImportError: cannot import name 'Qtcore' from 'PyQt5' (C:\Users\Ketan\AppData\Local\Programs\Python\Python39\lib\site-packages\PyQt5\__init__.py)
@8796868489
@8796868489 2 жыл бұрын
@@pyshine_official I've already install pyqt5
@pyshine_official
@pyshine_official 2 жыл бұрын
@@8796868489 You are using Python3.9, there might be some issue with it. Try using Python 3.6.5 with PyQt5
@8796868489
@8796868489 2 жыл бұрын
@@pyshine_official but PyQt5 is not available for Python 3.6.5
PyQt5 plot on Matplotlib: PyQt5 tutorial - Part 07
8:57
PyShine
Рет қаралды 8 М.
Stop, Intel’s Already Dead!
13:47
Linus Tech Tips
Рет қаралды 333 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 44 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 17 МЛН
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,8 МЛН
PyQt5 and OpenCv: PyQt5 tutorial - Part 05
18:37
PyShine
Рет қаралды 35 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 348 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 393 М.
How To Embed Matplotlib In PyQt5  (2018)
16:40
Parwiz Forogh
Рет қаралды 39 М.
Seaborn Is The Easier Matplotlib
22:39
NeuralNine
Рет қаралды 166 М.
PyQt5 QTableWidget tutorial: Load data, fill tables, format tables [Table Widget]
18:04
PyQt5 Matplotlib Qt Designer
10:47
Yapay Zeka Labs
Рет қаралды 70 М.
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 2,5 МЛН
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 19 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 1,1 МЛН
Что делать если в телефон попала вода?
0:17
Лена Тропоцел
Рет қаралды 3,5 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 554 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 64 МЛН