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

Skip to content

Commit 1bf15da

Browse files
committed
TST: Add trivial test
1 parent ca6bd25 commit 1bf15da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_subplots.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,9 @@ def test_subplots_offsettext():
143143
axes[1, 0].plot(x, x)
144144
axes[0, 1].plot(y, x)
145145
axes[1, 1].plot(y, x)
146+
147+
148+
def test_get_gridspec():
149+
# ahem, pretty trivial, but...
150+
fig, ax = plt.subplots()
151+
assert ax.get_subplotspec().get_gridspec() == ax.get_gridspec()

0 commit comments

Comments
 (0)