Return the current size of the figure in inches. Returns ------- ndarray The size (width, height) of the figure in inches. See Also -------- matplotlib.figure.Figure.set_size_inches matplotlib.figure.Figure.get_figwidth
(self)
| 3173 | self.stale = True |
| 3174 | |
| 3175 | def get_size_inches(self): |
| 3176 | """ |
| 3177 | Return the current size of the figure in inches. |
| 3178 | |
| 3179 | Returns |
| 3180 | ------- |
| 3181 | ndarray |
| 3182 | The size (width, height) of the figure in inches. |
| 3183 | |
| 3184 | See Also |
| 3185 | -------- |
| 3186 | matplotlib.figure.Figure.set_size_inches |
| 3187 | matplotlib.figure.Figure.get_figwidth |
| 3188 | matplotlib.figure.Figure.get_figheight |
| 3189 | |
| 3190 | Notes |
| 3191 | ----- |
| 3192 | The size in pixels can be obtained by multiplying with `Figure.dpi`. |
| 3193 | """ |
| 3194 | return np.array(self.bbox_inches.p1) |
| 3195 | |
| 3196 | def get_figwidth(self): |
| 3197 | """Return the figure width in inches.""" |
no outgoing calls