collin80 / SavvyCAN

QT based cross platform canbus tool
MIT License
1k stars 278 forks source link

Graph window mixes logs? #660

Open bjnswe opened 1 year ago

bjnswe commented 1 year ago

The issues comes when loading a new log when a graph window is open. If I open Savvycan, load a single log file and plot in a graph, everything is fine. If I then open a different log, then it looks like it "mixes" both logs in the same graph. It looks very messy. So then I have to close the graph window, open it again, and load the graph definitions again. After that, it plots the new log clean.

I don't know if this intended or not, but in version 199, it doesn't do this. Then it just replaces all the content of the graph with what is in the new log.

If this "mixing" is intended, I would like to have the option to choose if it mixes or just replaces the graph with the new loaded log file like it used to do.

collin80 commented 1 year ago

It's a bug I keep forgetting to fix. You're right, it didn't used to do that. When I switched to allowing multiple open graph windows the bug popped up. The problem is that the graph windows aren't getting the signal to say that the previous frames were cleared so they leave the old data in there. I'll try to get this fixed soon.