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
@eltonrobaina19262 жыл бұрын
Nice videos.Very good!!!
@bennguyen131311 ай бұрын
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-mcrae3 жыл бұрын
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_official3 жыл бұрын
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-mcrae3 жыл бұрын
@@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.
@interprimus11343 жыл бұрын
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_official3 жыл бұрын
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.
@interprimus11343 жыл бұрын
@@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_official3 жыл бұрын
@@interprimus1134 Merry Christmas! Alright, it will come soon on pyshine.com have a nice day!
@interprimus11343 жыл бұрын
@@pyshine_official hi friend! not done yet? how to know when it will be ready?))
@pyshine_official3 жыл бұрын
@@interprimus1134 Hi its available: pyshine.com/Drag-and-Drop-CSV-file-with-axis-selection-gui/ Have a nice day!