

def _set_all_axis_color(self, axis, color):
    'Set axis ticks, title, labels to given color'
    for prop in ['ticks', 'axis', 'major_ticks', 'minor_ticks', 'title', 'labels']:
        prop_set = getattr(axis.properties, prop)
        if (color and (prop in ['title', 'labels'])):
            prop_set.fill = ValueRef(value=color)
        elif (color and (prop in ['axis', 'major_ticks', 'minor_ticks', 'ticks'])):
            prop_set.stroke = ValueRef(value=color)

dataset/ETHPy150Open wrobstory/vincent/vincent/visualization.py Visualization._set_all_axis_color/original