def METHOD_NAME(value):
    """
    Return duplicate of parameter value
    Used to apply same value to x & y axes if only one
    value is given.
    """
    if is_scalar_or_string(value):
        return types.SimpleNamespace(x=value, y=value)
    if hasattr(value, "x") and hasattr(value, "y"):
        return value
    if len(value) == 2:
        return types.SimpleNamespace(x=value[0], y=value[1])
    else:
        return types.SimpleNamespace(x=value, y=value)