MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / get_size_inches

Method get_size_inches

lib/matplotlib/figure.py:3175–3194  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 15

_set_dpiMethod · 0.95
make_imageMethod · 0.80
frame_sizeMethod · 0.80
_adjust_frame_sizeMethod · 0.80
executeMethod · 0.80
_auto_adjust_subplotparsFunction · 0.80
_saveMethod · 0.80
_print_figureMethod · 0.80
_print_figure_texMethod · 0.80
print_pdfMethod · 0.80
savefigMethod · 0.80

Calls

no outgoing calls

Tested by 6

test_completeFunction · 0.64
test_figsizeFunction · 0.64