Skip to content

Commit 84665b5

Browse files
committed
TST: add a test
1 parent c289e01 commit 84665b5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/mpl_toolkits/tests/test_mplot3d.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,3 +1324,11 @@ def test_scalarmap_update(fig_test, fig_ref):
13241324
# ref
13251325
ax_ref = fig_ref.add_subplot(111, projection='3d')
13261326
sc_ref = ax_ref.scatter(x, y, z, c=c, s=40, cmap='viridis')
1327+
1328+
1329+
def test_subfigure_simple():
1330+
# smoketest that subfigures can work...
1331+
fig = plt.figure()
1332+
sf = fig.subfigures(1, 2)
1333+
ax = sf[0].add_subplot(1, 1, 1, projection='3d')
1334+
ax = sf[1].add_subplot(1, 1, 1, projection='3d', label='other')

0 commit comments

Comments
 (0)