Skip to content

Commit d01a4f0

Browse files
committed
Testing of ascii data works again
This was broken and I didn't even know it!
1 parent c71c11b commit d01a4f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gnuplotlib.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,7 @@ def set_equation(equation, cmds):
17661766
format(matrix = matrix,
17671767
using = using,
17681768
optioncmds = optioncmds))
1769+
plotCurveCmdsMinimal.append( plotCurveCmds[-1] ) # same testing command
17691770

17701771
testData_curve = ''
17711772
if curve.get('matrix'):
@@ -1780,9 +1781,8 @@ def set_equation(equation, cmds):
17801781
set_equation('equation_above', plotCurveCmdsNonDataAfter)
17811782

17821783
# the command to make the plot and to test the plot
1783-
cmd = basecmd + ','.join(plotCurveCmdsNonDataBefore + plotCurveCmds + plotCurveCmdsNonDataAfter)
1784-
cmdMinimal = (basecmd + ','.join(plotCurveCmdsNonDataBefore + plotCurveCmdsMinimal + plotCurveCmdsNonDataAfter)) \
1785-
if plotCurveCmdsMinimal else cmd
1784+
cmd = basecmd + ','.join(plotCurveCmdsNonDataBefore + plotCurveCmds + plotCurveCmdsNonDataAfter)
1785+
cmdMinimal = basecmd + ','.join(plotCurveCmdsNonDataBefore + plotCurveCmdsMinimal + plotCurveCmdsNonDataAfter)
17861786

17871787
return (cmd, cmdMinimal, testData)
17881788

0 commit comments

Comments
 (0)