Skip to content

Commit ed21e95

Browse files
committed
"fill opacity=0" is redundant if "fill=none"
1 parent 930b790 commit ed21e95

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
@@ -262,7 +262,7 @@ def get_draw_options(data, obj, ec, fc, style, width):
262262
else:
263263
if ec is not None and ec_rgba[3] != 1.0:
264264
draw_options.append(("draw opacity=" + ff).format(ec_rgba[3]))
265-
if fc is not None and fc_rgba[3] != 1.0:
265+
if fc is not None and 0 < fc_rgba[3] != 1.0:
266266
draw_options.append(("fill opacity=" + ff).format(fc_rgba[3]))
267267

268268
if width is not None:

0 commit comments

Comments
 (0)