PyQt5 plot on Matplotlib: PyQt5 tutorial - Part 07

  Рет қаралды 8,104

PyShine

PyShine

Күн бұрын

Пікірлер: 12
@ThomasHaberkorn
@ThomasHaberkorn 3 жыл бұрын
great series of videos! One more to round it up: Is it possible to create a 'data cursor' to display the CSV values near the mouse location? would be a very useful add-on in my opinion. thanks
@eltonrobaina1926
@eltonrobaina1926 2 жыл бұрын
Nice videos.Very good!!!
@bennguyen1313
@bennguyen1313 11 ай бұрын
Is there a way to make a GUI or webapp that allows the user to checkbox which series in the csv to plot? And have the plot automatically add legends/scale?
@duncan-mcrae
@duncan-mcrae 3 жыл бұрын
How would you keep the internal dimensions the same as a sheet of paper? An A4 sheet is 11.7in x 8.3in. The matplotlib default dpi is 100. How do you make the programs internal (saved image) pixels the same ratio - or exactly 1170px x 830px? Probably not the right forum for this questions, but oh well.
@pyshine_official
@pyshine_official 3 жыл бұрын
Hi, good question. If you want to save figure in terms of pixels, let's say 800pixels by 480pixles then simply change the main window size of the gui. For example: MainWindow.resize(800*1000/964, 480*1000/817)# 800x480 approximately. In general the Matplotlib figure can be saved in pixels as well: px = 1/plt.rcParams['figure.dpi'] # pixel in inches plt.subplots(figsize=(600*px, 200*px))
@duncan-mcrae
@duncan-mcrae 3 жыл бұрын
@@pyshine_official Thanks for the reply. I have parked this in the too-hard basket and decided to just let matplotlib plot outside instead of in a second pyqt5 window. Reason is, I wanted the toolbar as well. As soon as you add this, whatever you tried to achieve to get the aspect ration right, gets squished vertically again.
@interprimus1134
@interprimus1134 3 жыл бұрын
hi, the question, related to both (part 6 and 7) videos, when you load the last csv in list"Test Result" your x not takes the data from correct column which is date, it drawn as a line in the plot bottom, thus the question - how to invite the axises assignment in menu, let say into 'curves' tab or somewhere else? It is useful feature due to auto assignment is not always correct especially when you use time dependent data and need to choose at least x axis as time. thanks. one more things, how to add let say checkboxes to be able switch on/off curves on plot? thanks
@pyshine_official
@pyshine_official 3 жыл бұрын
Hi, highly appreciate this good question. First, we can assume that the first column in csv belongs to the datetime data. Second, we can add a widget to GUI that can take input as option to select x axis as the datetime. Third, we can use a flag to check if user wants datetime as x axis or not, if this input is triggered by user. Then we can use the .plot function to switch to x, y mode while plotting based on that flag.
@interprimus1134
@interprimus1134 3 жыл бұрын
@@pyshine_official hi, I've been thinking about this, datetime case, this is a sort of some special case, in general there should be (IMHO) the possibility for users to choose/ assign axises with any curve and let'em show and hide curves on the plot. if you can shot the video or add some code on site how to realize these features it would be appreciated. thanks and Merry Christmas!
@pyshine_official
@pyshine_official 3 жыл бұрын
@@interprimus1134 Merry Christmas! Alright, it will come soon on pyshine.com have a nice day!
@interprimus1134
@interprimus1134 3 жыл бұрын
@@pyshine_official hi friend! not done yet? how to know when it will be ready?))
@pyshine_official
@pyshine_official 3 жыл бұрын
@@interprimus1134 Hi its available: pyshine.com/Drag-and-Drop-CSV-file-with-axis-selection-gui/ Have a nice day!
How to plot csv file data: PyQt5 tutorial - Part 06
13:49
PyShine
Рет қаралды 16 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 23 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 39 МЛН
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 80 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 90 МЛН
Creating PyQt Layouts for GUI Python Applications
13:56
Real Python
Рет қаралды 31 М.
How to embed Matplotlib Graph in a PyQt5 application
6:38
Jie Jenn
Рет қаралды 52 М.
Matplotlib Tutorial (Part 9): Plotting Live Data in Real-Time
20:34
Corey Schafer
Рет қаралды 414 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,6 МЛН
How To Embed Matplotlib In PyQt5  (2018)
16:40
Parwiz Forogh
Рет қаралды 39 М.
Apple-Designer aktualisieren das iPhone-Design 😂
0:13
Abuloris
Рет қаралды 4,3 МЛН
Новый MacBook Air M2 разрядился в коробке!
1:00
iPhone 7
0:13
ARGEN
Рет қаралды 19 МЛН
Магия цифр в айфоне🤯
0:18
FilmBytes
Рет қаралды 891 М.
Вот что будет, если купить WINRAR
0:23
Энди Нюрров
Рет қаралды 207 М.