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

Function test_tight_layout8

lib/matplotlib/tests/test_tightlayout.py:138–144  ·  view source on GitHub ↗

Test automatic use of tight_layout.

()

Source from the content-addressed store, hash-verified

136
137@image_comparison(['tight_layout8'], style='mpl20', tol=0.005)
138def test_tight_layout8():
139 """Test automatic use of tight_layout."""
140 fig = plt.figure()
141 fig.set_layout_engine(layout='tight', pad=0.1)
142 ax = fig.add_subplot()
143 example_plot(ax, fontsize=24)
144 fig.draw_without_rendering()
145
146
147@image_comparison(['tight_layout9'], style='mpl20')

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
set_layout_engineMethod · 0.80
add_subplotMethod · 0.80
example_plotFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…