def reformat_properties(properties):
    """Reformats properties, given in the form,

    properties = {'color':('b', 'g'), 'ls':('-','--')}

    into a format which can be looped over to apply
    them to individual lines."""
    reformatted_properties = [{} for i in properties.values()[0]]
    for key, tup in properties.items():
        for d, val in zip(reformatted_properties, tup):
            d[key] = val
    return reformatted_properties