Reset all the margins to zero. Must do this after changing figure size, for instance, because the relative size of the axes labels etc changes.
(self)
| 118 | return str |
| 119 | |
| 120 | def reset_margins(self): |
| 121 | """ |
| 122 | Reset all the margins to zero. Must do this after changing |
| 123 | figure size, for instance, because the relative size of the |
| 124 | axes labels etc changes. |
| 125 | """ |
| 126 | for todo in ['left', 'right', 'bottom', 'top', |
| 127 | 'leftcb', 'rightcb', 'bottomcb', 'topcb']: |
| 128 | self.edit_margins(todo, 0.0) |
| 129 | |
| 130 | def add_constraints(self, parent): |
| 131 | # define self-consistent constraints |
no test coverage detected