code: def apply_profile(self, profile, keylist=None):
          
          with self.suppress_redraw:
              profile.copy_settings(self.t_, keylist=keylist,
                                    callback=True)
              self.redraw(whence=0)
docs: Apply a profile to the viewer.
  
          Parameters
          ----------
          profile : `~ginga.misc.Settings.SettingGroup`
  
          This function is used to initialize the viewer to a known state.
          The keylist, if given, will limit the items to be transferred
          from the profile to viewer settings, otherwise all items are
          copied.