def valuedict(keys, value, default):
    """
     Build value dictionary from a list of keys and a value.

     Parameters
     ----------
     keys: list
         The list of keys
     value: {dict, int, float, str, None}
         A value or the already formed dictionary
     default: {int, float, str}
         A default value to set if no value

     Returns
     -------
     dict
         A dictionary

     Notes
     -----
     This standalone and generic function is only required by plotters.

     """
    if isinstance(value, dict):
        return {key: value.get(key, default) for key in keys}
    else:
        return dict.fromkeys(keys, value or default)