Private version of set_position. Call this internally to get the same functionality of `set_position`, but not to take the axis out of the constrained_layout hierarchy.
(self, pos, which='both')
| 1199 | self.set_in_layout(False) |
| 1200 | |
| 1201 | def _set_position(self, pos, which='both'): |
| 1202 | """ |
| 1203 | Private version of set_position. |
| 1204 | |
| 1205 | Call this internally to get the same functionality of `set_position`, |
| 1206 | but not to take the axis out of the constrained_layout hierarchy. |
| 1207 | """ |
| 1208 | if not isinstance(pos, mtransforms.BboxBase): |
| 1209 | pos = mtransforms.Bbox.from_bounds(*pos) |
| 1210 | for ax in self._twinned_axes.get_siblings(self): |
| 1211 | if which in ('both', 'active'): |
| 1212 | ax._position.set(pos) |
| 1213 | if which in ('both', 'original'): |
| 1214 | ax._originalPosition.set(pos) |
| 1215 | self.stale = True |
| 1216 | |
| 1217 | def reset_position(self): |
| 1218 | """ |
no test coverage detected