Merge remote-tracking branch 'origin/bugfix/7985_load_event_sample_detail'
Merge remote-tracking branch 'origin/bugfix/7997_close_spectrum_view'
Move the preparation/finalization code to a single place.

Refs #7668
Function to plot the selected group/pair.

Refs #7668
Merge branch 'bugfix/7668_muon_file_not_loaded' into develop