nested / expandable plots
It would be good to add nested plots (i.e. plots that can have subplots OR plot containers/folders) to support:
- bundling N sensors/detectors/etc. in one measurement
- derived plots (e.g. fits)
- indicators (e.g. min/max lines)
This needs switching from QListWidget
to QTreeWidget
(should probably have started with that).
Two ideas for syntax:
Split from current:
c.new_container("XYZ")
c.new_subplot("ABC", parent="XYZ")
Merged with current (via folder syntax):
c.new_plot("XYZ/ABC")
(Currently, I strongly prefer the second version.)