def _load_style(rec, context): result = VisualAttributes() if 'preferred_cmap' in result._atts: result._atts.remove('preferred_cmap') for attr in result._atts: setattr(result, attr, rec[attr]) return result
def _load_style(rec, context): result = VisualAttributes() for attr in result._atts: setattr(result, attr, rec[attr]) return result