Get the attribute strings with setters for object. For example, for a line, return ``['markerfacecolor', 'linewidth', ....]``.
(self)
| 1592 | return source_class |
| 1593 | |
| 1594 | def get_setters(self): |
| 1595 | """ |
| 1596 | Get the attribute strings with setters for object. |
| 1597 | |
| 1598 | For example, for a line, return ``['markerfacecolor', 'linewidth', |
| 1599 | ....]``. |
| 1600 | """ |
| 1601 | setters = [] |
| 1602 | for name in dir(self.o): |
| 1603 | if not name.startswith('set_'): |
| 1604 | continue |
| 1605 | func = getattr(self.o, name) |
| 1606 | if (not callable(func) |
| 1607 | or self.number_of_parameters(func) < 2 |
| 1608 | or self.is_alias(func)): |
| 1609 | continue |
| 1610 | setters.append(name[4:]) |
| 1611 | return setters |
| 1612 | |
| 1613 | @staticmethod |
| 1614 | @cache |
no test coverage detected