code: def update_selection(self):
          
  
          # clear all boxes
          self.clear_boxes()
          self.draw_figure(self.s)
  
          # update temperature list
          if self.Data[self.s]['T_or_MW'] == "T":
              self.temperatures = np.array(self.Data[self.s]['t_Arai']) - 273.
          else:
              self.temperatures = np.array(self.Data[self.s]['t_Arai'])
  
          self.T_list = ["%.0f" % T for T in self.temperatures]
          self.tmin_box.SetItems(self.T_list)
          self.tmax_box.SetItems(self.T_list)
          self.tmin_box.SetValue("")
          self.tmax_box.SetValue("")
          self.Blab_window.SetValue(
              "%.0f" % (float(self.Data[self.s]['pars']['lab_dc_field']) * 1e6))
          if "saved" in self.Data[self.s]['pars']:
              self.pars = self.Data[self.s]['pars']
              self.update_GUI_with_new_interpretation()
          self.Add_text(self.s)
          self.write_sample_box()
docs: update figures and statistics windows with a new selection of specimen