code: def make_scale(ae, series, *args, **kwargs):
      
      stype = scale_type(series)
  
      # filter parameters by scale type
      if stype == 'discrete':
          with suppress(KeyError):
              del kwargs['trans']
  
      scale_name = 'scale_{}_{}'.format(ae, stype)
      scale_klass = Registry[scale_name]
      return scale_klass(*args, **kwargs)
docs: Return a proper scale object for the series
  
      The scale is for the aesthetic ae, and args & kwargs
      are passed on to the scale creating class