Skip to content

Commit 83afcb9

Browse files
committed
Failsafe ec if statement
1 parent 72a3987 commit 83afcb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tikzplotlib/_path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def get_draw_options(data, obj, ec, fc, ls, lw, hatch=None):
309309
finally:
310310
if h_rgba[3] > 0:
311311
data, pattern = _mpl_hatch2pgfp_pattern(data, hatch, h_col, h_rgba)
312-
if ec_rgba[3] == 0.0:
312+
if ec is not None and ec_rgba[3] == 0.0:
313313
# 'draw=none' must be specified for the border to be omitted
314314
# when a pattern is drawn using \draw.
315315
draw_options.append("draw={}".format(ec_col))

0 commit comments

Comments
 (0)