X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=dart%2Fplot.py;fp=dart%2Fplot.py;h=d427488a4bde3ad281e5f99cf42bfa2479890062;hb=52738a9c3bc2b9bbd0729d8ba1dcb1b970681e67;hp=0000000000000000000000000000000000000000;hpb=bb6a4ae2d56165eda02ce1232d40efd1381ffef0;p=svn42.git diff --git a/dart/plot.py b/dart/plot.py new file mode 100755 index 0000000..d427488 --- /dev/null +++ b/dart/plot.py @@ -0,0 +1,16 @@ +#!/usr/bin/env python + +import fileinput +import numpy +import pylab +labels=[]; +for line in fileinput.input(): + (label,foo,datastr)=line.partition(":") + labels.append(label) + data = numpy.array(datastr.split(",")) + pylab.plot(range(len(data)),data,label=label) + pylab.hold(True) + +pylab.legend() +pylab.show() +