plottr icon indicating copy to clipboard operation
plottr copied to clipboard

Use same window for autoplotting

Open nulinspiratie opened this issue 3 years ago • 4 comments

I've found the "Auto-plot new" feature of Plottr quite useful because it allows me to always view the currently active measurement. However, it is currently programmed such that every new measurement opens a new window, and also doesn't close the previous window. This can create an excessive amount of windows, especially when executing several measurements in quick succession.

I propose the option to have a dedicated window for auto-plotting. Whenever a new measurement is started, it will clear contents of that window, and replace it with the contents of the new dataset. It could for example be enabled by a second checkbox as such: Screenshot 2021-12-01 140618 Edit: It looks like uploading an image doesn't work. The example showed a second checkbox with text "Same window" below the "Auto-plot new" checkbox

I wanted to see how others feel about this, and if others agree it would be a good addition, what a good strategy is to implement this. Looking over the code, I think the best strategy would be to have an attribute QCodesDBInspector._autoplot_window which could point towards a dedicated autoplot window. Further, AutoPlotMainWindow should have a method to clear it's contents and to load new contents.

nulinspiratie avatar Dec 01 '21 13:12 nulinspiratie