8000 Add test · matplotlib/matplotlib@5edf4e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5edf4e5

Browse files
authored
Add test
1 parent 88d77dd commit 5edf4e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,11 @@ def test_subfigure_scatter_size():
12471247
ax.scatter([1, 2, 3], [1, 2, 3], s=30, marker='s', color='r')
12481248
ax.scatter([3, 4, 5], [1, 2, 3], s=[20, 30, 40], marker='s', color='g')
12491249

1250+
def test_subfigure_pdf():
1251+
fig = plt.figure(layout='constrained')
1252+
fig.subfigures()
1253+
buffer = io.StringIO()
1254+
fig.savefig(buffer, format='pdf')
12501255

12511256
def test_add_subplot_kwargs():
12521257
# fig.add_subplot() always creates new axes, even if axes kwargs differ.

0 commit comments

Comments
 (0)
0