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

Function test_subfigure_tightbbox

lib/matplotlib/tests/test_figure.py:1378–1385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1376
1377
1378def test_subfigure_tightbbox():
1379 # test that we can get the tightbbox with a subfigure...
1380 fig = plt.figure(layout='constrained')
1381 sub = fig.subfigures(1, 2)
1382
1383 np.testing.assert_allclose(
1384 fig.get_tightbbox(fig.canvas.get_renderer()).width,
1385 8.0)
1386
1387
1388def test_subfigure_dpi():

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
subfiguresMethod · 0.80
get_tightbboxMethod · 0.45
get_rendererMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…