Skip to content

Commit 4745cc6

Browse files
committed
fix: str titles being iterated
1 parent 9d5f0cd commit 4745cc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spaceplot/appearance/layout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def layout(
1515
axs,
1616
*,
1717
axis: str = 'both',
18-
title: str = None,
18+
title: str | list = None,
1919
x_label: str = None,
2020
y_label: str = None,
2121
abc: str | bool = None,
@@ -47,7 +47,7 @@ def layout(
4747
# ensure axs is a list
4848
if not isinstance(axs, Iterable):
4949
axs = [axs]
50-
if not isinstance(title, Iterable):
50+
if not isinstance(title, list):
5151
title = [title]
5252

5353
handle_abc_labels(axs, abc, **kwargs)

0 commit comments

Comments
 (0)