Traverses the object and sets the supplied attribute on the
    object. Supports Dimensioned and DimensionedPlot types.

def traverse_setter(obj, attribute, value):
    """
    Traverses the object and sets the supplied attribute on the
    object. Supports Dimensioned and DimensionedPlot types.
    """
    obj.traverse(lambda x: setattr(x, attribute, value))