Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f25f1f7

Browse files
committed
TST: adjusting existing axes with collage
1 parent 537f7f3 commit f25f1f7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,3 +595,20 @@ def test_empty(self, fig_test, fig_ref, x, empty_sentinel):
595595

596596
axB = fig_ref.add_subplot(gs[1, 1])
597597
axB.set_title(labels[1])
598+
599+
@check_figures_equal()
600+
def test_adjust_existing(self, fig_test, fig_ref):
601+
x = [["A", "B"], ["C", "B"]]
602+
603+
grid_axes = fig_ref.build_grid(x)
604+
605+
for k, ax in grid_axes.items():
606+
ax.set_title(k)
607+
608+
(axA, axB, axC) = fig_test.subplots(3)
609+
for ax, title in zip((axA, axB, axC), 'ABC'):
610+
ax.set_title(title)
611+
612+
y = [[axA, axB], [axC, axB]]
613+
614+
grid_axes_ts = fig_test.build_grid(y)

0 commit comments

Comments
 (0)