Return the position of the Axes within the figure as a `.Bbox`. Parameters ---------- original : bool If ``True``, return the original position. Otherwise, return the active position. For an explanation of the positions see `.set_
(self, original=False)
| 1138 | self.xaxis.get_transform(), self.yaxis.get_transform())) |
| 1139 | |
| 1140 | def get_position(self, original=False): |
| 1141 | """ |
| 1142 | Return the position of the Axes within the figure as a `.Bbox`. |
| 1143 | |
| 1144 | Parameters |
| 1145 | ---------- |
| 1146 | original : bool |
| 1147 | If ``True``, return the original position. Otherwise, return the |
| 1148 | active position. For an explanation of the positions see |
| 1149 | `.set_position`. |
| 1150 | |
| 1151 | Returns |
| 1152 | ------- |
| 1153 | `.Bbox` |
| 1154 | |
| 1155 | """ |
| 1156 | if original: |
| 1157 | return self._originalPosition.frozen() |
| 1158 | else: |
| 1159 | locator = self.get_axes_locator() |
| 1160 | if not locator: |
| 1161 | self.apply_aspect() |
| 1162 | return self._position.frozen() |
| 1163 | |
| 1164 | def set_position(self, pos, which='both'): |
| 1165 | """ |