'Recursively strip style from the current representation.
All PlotlyDicts and PlotlyLists are guaranteed to survive the
stripping process, though they made be left empty. This is allowable.
Keys that will be stripped in this process are tagged with
`\'type\': \'style\'` in graph_objs_meta.json. Note that a key tagged as
style, but with an array as a value may still be considered data.'

def strip_style(self):

    keys = list(self.keys())
    for key in keys:
        if isinstance(self[key], (PlotlyDict, PlotlyList)):
            self[key].strip_style()
        elif (self._get_attribute_role(key, value=self[key]) == 'style'):
            del self[key]
        elif ((self._name == 'layout') and (key == 'autosize')):
            del self[key]
