jdber1 / opendrop

OpenDrop pendant drop tensiometry software
GNU General Public License v3.0
30 stars 18 forks source link

Graph live update #25

Open ricotabor opened 3 years ago

ricotabor commented 3 years ago

Just noticed a quirk with the new opendrop. When you preview the graphs of IFT, Volume and surface area after you start a new measurement, it doesn't reset to a new graph until you go back to 'individual fit' and then 'graph' again. It's not a huge deal, but it can be misleading if you're not careful. That being said - it doesn't affect the data at the end, just a convenience/checking kind of thing.

eugenhu commented 3 years ago

That's strange, the graphs should be redrawing themselves every time there's new data but the matplotlib gtk widgets have been a bit buggy in the past.

Could you summarise the steps to reproduce this? I've tried starting an analysis, waiting for the results to finish, click on 'Graphs', clicking back to the first page, changing the images and frame interval, starting an analysis again, waiting for the results to finish and then clicking on 'Graphs' (and I've also tried clicking on 'Graphs' while the analysis is still running), and the graphs seem to show up to date data.

Ash-P-Williams commented 3 years ago

I get this issue when I do the following: Run a measurement, during the measurement check the graphs tab to check the data is okay. I then switch back to the Individual Fit tab until the measurement ends. I then save the data, load a new sample and repeat. On the repeat, I've found that the plots in the graph tab are exactly the same as the previous measurements, and sometimes won't update. Not sure why that is.

E.g what Opendrop shows: PXL_20201103_023320283 What actually happened (drop fell off): PXL_20201103_023330704

eugenhu commented 3 years ago

Hmm ok, I'm still not able to reproduce that so it's hard to tell what's gone wrong. I've been wanting to replace matplotlib for the live plotting though since it's kind of slow laggy, hopefully that should resolve this bug as well.

ricotabor commented 3 years ago

I suspect that this may also be what's causing the lag on Ubuntu 20.04LTS setup. Maybe replacing matplotlib will fix that too?