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

Function test_tightbbox_box_aspect

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

Source from the content-addressed store, hash-verified

1004 'facecolor': 'teal'},
1005 remove_text=True)
1006def test_tightbbox_box_aspect():
1007 fig = plt.figure()
1008 gs = fig.add_gridspec(1, 2)
1009 ax1 = fig.add_subplot(gs[0, 0])
1010 ax2 = fig.add_subplot(gs[0, 1], projection='3d')
1011 ax1.set_box_aspect(.5)
1012 ax2.set_box_aspect((2, 1, 1))
1013
1014
1015@check_figures_equal(extensions=["svg", "pdf", "eps", "png"])

Callers

nothing calls this directly

Calls 4

figureMethod · 0.80
add_gridspecMethod · 0.80
add_subplotMethod · 0.80
set_box_aspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…