plot = Plot()

for i in xrange(6):
    line = Line()
    line.xValues = xrange(5)
    line.yValues = [(i+1) * x for x in line.xValues]
    line.label = "Line %d" % (i + 1)
    plot.add(line)

plot.addLineColor("red")
plot.addLineColor("blue")
plot.addLineStyle("-")
plot.addLineStyle("--")
plot.addLineStyle(":")
plot.hasLegend(columns=2)
plot.save("linestyles.png")

9c6a604a1ea392e35e952015b53035c7d3180490
<mask token>

<mask token>
for i in xrange(6):
    line = Line()
    line.xValues = xrange(5)
    line.yValues = [((i + 1) * x) for x in line.xValues]
    line.label = 'Line %d' % (i + 1)
    plot.add(line)
plot.addLineColor('red')
plot.addLineColor('blue')
plot.addLineStyle('-')
plot.addLineStyle('--')
plot.addLineStyle(':')
plot.hasLegend(columns=2)
plot.save('linestyles.png')

plot = Plot()
for i in xrange(6):
    line = Line()
    line.xValues = xrange(5)
    line.yValues = [((i + 1) * x) for x in line.xValues]
    line.label = 'Line %d' % (i + 1)
    plot.add(line)
plot.addLineColor('red')
plot.addLineColor('blue')
plot.addLineStyle('-')
plot.addLineStyle('--')
plot.addLineStyle(':')
plot.hasLegend(columns=2)
plot.save('linestyles.png')

plot = Plot()

for i in xrange(6):
    line = Line()
    line.xValues = xrange(5)
    line.yValues = [(i+1) * x for x in line.xValues]
    line.label = "Line %d" % (i + 1)
    plot.add(line)

plot.addLineColor("red")
plot.addLineColor("blue")
plot.addLineStyle("-")
plot.addLineStyle("--")
plot.addLineStyle(":")
plot.hasLegend(columns=2)
plot.save("linestyles.png")
