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

Function test_tight_layout2

lib/matplotlib/tests/test_tightlayout.py:36–43  ·  view source on GitHub ↗

Test tight_layout for multiple subplots.

()

Source from the content-addressed store, hash-verified

34
35@image_comparison(['tight_layout2'], style='mpl20')
36def test_tight_layout2():
37 """Test tight_layout for multiple subplots."""
38 fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(nrows=2, ncols=2)
39 example_plot(ax1)
40 example_plot(ax2)
41 example_plot(ax3)
42 example_plot(ax4)
43 plt.tight_layout()
44
45
46@image_comparison(['tight_layout3'], style='mpl20')

Callers

nothing calls this directly

Calls 3

example_plotFunction · 0.70
subplotsMethod · 0.45
tight_layoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…