Brian Silverman | 8d3816a | 2017-07-03 18:52:15 -0700 | [diff] [blame^] | 1 | #!/usr/bin/python3 |
| 2 | |
| 3 | import numpy |
| 4 | from matplotlib import pylab |
| 5 | |
| 6 | data = numpy.loadtxt('/tmp/dump3.csv', |
| 7 | delimiter=',', |
| 8 | skiprows=1) |
| 9 | x = range(len(data)) |
| 10 | |
| 11 | pylab.subplot(1, 1, 1) |
| 12 | pylab.plot(x, [d[0] for d in data], 'ro', label='ia') |
| 13 | pylab.plot(x, [d[1] for d in data], 'go', label='ib') |
| 14 | pylab.plot(x, [d[2] for d in data], 'bo', label='ic') |
| 15 | pylab.plot(x, [d[3] for d in data], 'r--', label='ia_goal') |
| 16 | pylab.plot(x, [d[4] for d in data], 'g--', label='ib_goal') |
| 17 | pylab.plot(x, [d[5] for d in data], 'b--', label='ic_goal') |
| 18 | pylab.plot(x, [d[6] for d in data], 'rx', label='i_overall') |
| 19 | pylab.plot(x, [d[7] for d in data], 'gx', label='omega') |
| 20 | pylab.plot(x, [d[8] for d in data], 'r', label='van') |
| 21 | pylab.plot(x, [d[9] for d in data], 'g', label='vbn') |
| 22 | pylab.plot(x, [d[10] for d in data], 'b', label='vcn') |
| 23 | pylab.legend() |
| 24 | |
| 25 | pylab.show() |