code: def log_norm(func):
      
      @wraps(func)
      def decorated_func(*args, **kwargs):
          norm, kwargs = format_norm(kwargs)
          kwargs['norm'] = norm
          return func(*args, **kwargs)
      return decorated_func
docs: Wrap ``func`` to handle custom gwpy keywords for a LogNorm colouring