Hello! I just solved it, the issue was in the append syntax which i thought I set it to 0. Clear works perfectly but everytime it trys to replot, it uses ys.append(data) so the solution is to clear append too. ys.clear(). will solve the issue.
Den torsdag 10 maj 2018 kl. 19:56:15 UTC+2 skrev HK: > > > Hello! > I have made a graph that plots sensor signals, and i have it in a class > such Qt4 GUI can show it in widget. I have tried few things lately but it > haven't fulfilled my wishes. > I want my graph to reset/reload or whatever you want to call it when i > want to start new measurements, that is graph with no data plotted. > I've been trying repaint, update etc but can't quite get it to work, > matter fact i dont understand if i am using repaint/update correctly. > > Any suggestions how i may solve this issue? > > Best Regards, > > Hamza > -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/f261c4a1-977a-49bb-a0aa-6cbe2bbf2d4e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
