Skip to content

Commit c00a149

Browse files
committed
Fixed uninteresting de-undescoring bug
Prior to this patch, this would fail: p = gp.gnuplotlib( ... ) p.plot( ..., _with=...)
1 parent 0cbb0fe commit c00a149

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gnuplotlib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,8 @@ def _massageAndValidateArgs(self, curves, curveOptions_base):
18121812
else:
18131813
raise GnuplotlibError("all data arguments should be of type ndarray (one curve) or tuples")
18141814

1815+
curveOptions_base = _dictDeUnderscore(curveOptions_base)
1816+
18151817
# add an options dict if there isn't one, apply the base curve
18161818
# options to each curve
18171819
#
@@ -1831,7 +1833,7 @@ def reformat(curve):
18311833
curve = curve[:-1]
18321834
else:
18331835
d = {}
1834-
for k in _dictDeUnderscore(curveOptions_base):
1836+
for k in curveOptions_base:
18351837
if k not in d:
18361838
d[k] = curveOptions_base[k]
18371839

0 commit comments

Comments
 (0)