Skip to content

Commit 930b790

Browse files
committed
Named colors for later use
1 parent e445b12 commit 930b790

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tikzplotlib/_path.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,16 @@ def get_draw_options(data, obj, ec, fc, style, width):
239239
draw_options = []
240240

241241
if ec is not None:
242-
data, col, ec_rgba = _color.mpl_color2xcolor(data, ec)
242+
data, ec_col, ec_rgba = _color.mpl_color2xcolor(data, ec)
243243
if ec_rgba[3] != 0.0:
244244
# Don't draw if it's invisible anyways.
245-
draw_options.append("draw={}".format(col))
245+
draw_options.append("draw={}".format(ec_col))
246246

247247
if fc is not None:
248-
data, col, fc_rgba = _color.mpl_color2xcolor(data, fc)
248+
data, fc_col, fc_rgba = _color.mpl_color2xcolor(data, fc)
249249
if fc_rgba[3] != 0.0:
250250
# Don't draw if it's invisible anyways.
251-
draw_options.append("fill={}".format(col))
251+
draw_options.append("fill={}".format(fc_col))
252252

253253
# handle transparency
254254
ff = data["float format"]

0 commit comments

Comments
 (0)