flyingk / kVIS3

kVIS3 data visualisation
GNU General Public License v3.0
5 stars 5 forks source link

Signal statistics only on the currently visible data #111

Closed AndersonRayner closed 3 years ago

AndersonRayner commented 3 years ago

Fix for issue #110.

Statistics only calculated on the currently visible data as taken from the x-axis.

flyingk commented 3 years ago

Thanks for that.

Can we add a check if those lines are already in the plot and then just update them? So if visible segment changes one can update stats without messing up plot.

Just have to give line a name and then search for them...

In the future there should be a auto update on xlim change, same with updating y limits. But that's another task...

AndersonRayner commented 3 years ago

The plots should now only allow a single 'stats' set of plot lines to appear. They're stored as children of the main line function and are deleted and updated at each call of the function

I'd prefer not to automatically update the stats lines based on the current xlims as it is nice to be able to zoom out and see how the region of interest fits in with the rest of the data. It is two mouse clicks to update manually and I don't think this feature will get much use.