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

Function test_tight_layout4

lib/matplotlib/tests/test_tightlayout.py:59–69  ·  view source on GitHub ↗

Test tight_layout for subplot2grid.

()

Source from the content-addressed store, hash-verified

57
58@image_comparison(['tight_layout4'], style='mpl20')
59def test_tight_layout4():
60 """Test tight_layout for subplot2grid."""
61 ax1 = plt.subplot2grid((3, 3), (0, 0))
62 ax2 = plt.subplot2grid((3, 3), (0, 1), colspan=2)
63 ax3 = plt.subplot2grid((3, 3), (1, 0), colspan=2, rowspan=2)
64 ax4 = plt.subplot2grid((3, 3), (1, 2), rowspan=2)
65 example_plot(ax1)
66 example_plot(ax2)
67 example_plot(ax3)
68 example_plot(ax4)
69 plt.tight_layout()
70
71
72@image_comparison(['tight_layout5'], 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…