code: def _get_matplot_dict(self, option, prop, defdict):
          
          cargs = self.curargs[option]
          result = cargs.copy()
          for varname in cargs:
              if prop in cargs[varname]:
                  name = cargs[varname][prop]
                  for key, val in list(defdict.items()):
                      if val == name:
                          cargs[varname][prop] = key
                          break
  
          return result
docs: Returns a copy of the settings dictionary for the specified option in 
          curargs with update values where the value is replaced by the key from 
          the relevant default dictionary.
  
          :arg option: the key in self.curargs to update.
          :arg defdict: the default dictionary whose keys should be used when values match.