Skip to content

Commit 9daffa3

Browse files
nbarlowATIrcomer
andauthored
fix check for None in hatch argument for stackplot
Co-authored-by: Ruth Comer <10599679+rcomer@users.noreply.github.com>
1 parent 97d704f commit 9daffa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/stackplot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def stackplot(axes, x, *args,
8585
else:
8686
colors = (axes._get_lines.get_next_color() for _ in y)
8787

88-
if not hatch or isinstance(hatch, str):
88+
if hatch is None or isinstance(hatch, str):
8989
hatch = itertools.cycle([hatch])
9090
else:
9191
hatch = itertools.cycle(hatch)

0 commit comments

Comments
 (0)