I write here because I am working on a Python project that logs the voltage values of a sensor connected to a Raspberry Pi through an ADC converter and write them in a csv file. This part is working just fine, however after the logging (which is triggered by a button in the GUIzero UI) is finished, I would like to be able to draw a graph of these values, triggered the same way.
This is why I would like to read all the data from the csv and store them into a table, which I can them define as the values from my y-axis, before I draw the graph with matplotlib. However, I couldn't find a proper way to do so, I tried to put these values into a table, but when I try to print it (just to check it is working well), nothing appears and my csv file is empty after that, which I don't want...
I am quite a newbie in programming/Raspberry Pi stuff so any help would be very appreciated ! Thanks in advance !