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

Function test_tight_layout3

lib/matplotlib/tests/test_tightlayout.py:47–55  ·  view source on GitHub ↗

Test tight_layout for multiple subplots.

()

Source from the content-addressed store, hash-verified

45
46@image_comparison(['tight_layout3'], style='mpl20')
47def test_tight_layout3():
48 """Test tight_layout for multiple subplots."""
49 ax1 = plt.subplot(221)
50 ax2 = plt.subplot(223)
51 ax3 = plt.subplot(122)
52 example_plot(ax1)
53 example_plot(ax2)
54 example_plot(ax3)
55 plt.tight_layout()
56
57
58@image_comparison(['tight_layout4'], style='mpl20')

Callers

nothing calls this directly

Calls 2

example_plotFunction · 0.70
tight_layoutMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…