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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 37

  • @SHONNER
    @SHONNER 3 ปีที่แล้ว +1

    Thank you for this. Trying out CSV files that I have right now.

  • @eltonrobaina1926
    @eltonrobaina1926 2 ปีที่แล้ว +1

    Fantastic tutorial, excellent methodology!!! Thank you very much!

  • @藍天駿-m9q
    @藍天駿-m9q 3 ปีที่แล้ว +1

    very very useful video thanks a lot you are my savior!

  • @pablokrahl5481
    @pablokrahl5481 2 ปีที่แล้ว +1

    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 ปีที่แล้ว +1

      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

  • @fxois3318
    @fxois3318 2 ปีที่แล้ว +1

    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 ?

  • @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

  • @maxhdz11
    @maxhdz11 3 ปีที่แล้ว

    This is the good stuff ;) subscribed

  • @arunabhsingh9129
    @arunabhsingh9129 3 ปีที่แล้ว

    Thanks for the video again, could you help me with getting multiple such canvasses which could then read data from different .csv files?

  • @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

  • @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/

  • @8796868489
    @8796868489 2 ปีที่แล้ว

    ImportError: cannot import name 'Qtcore' from 'PyQt5'
    I am getting this error.

    • @pyshine_official
      @pyshine_official  2 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@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

  • @colsoft09
    @colsoft09 4 ปีที่แล้ว

    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  4 ปีที่แล้ว +1

      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

    • @藍天駿-m9q
      @藍天駿-m9q 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.

  • @wonderman2864
    @wonderman2864 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      You're welcome and thanks for pointing out, we can use plt.scatter function

  • @AkshatJain-fh9zn
    @AkshatJain-fh9zn 4 ปีที่แล้ว +1

    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  4 ปีที่แล้ว

      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/

  • @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 ปีที่แล้ว +1

      @@1UniverseGames Glad to help! Please copy paste the error here. Also to resolve the issue write the exact versions of PyQt5 and Matplotlib here.