usr bin python coding utf-8 import sys import numpy as np import seabo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import numpy as np
import seaborn as sns
from matplotlib import pylab as plt
from mpl_toolkits.mplot3d import Axes3D
content=[]
if len(sys.argv) > 1:
fname = sys.argv[1]
with open(fname) as f:
content = np.array(map(lambda s: s.rstrip().split(';'), f.readlines()))
content = content.astype(np.float)
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.scatter(content[:, 0], content[:, 1], content[:, 2], c='b')
plt.show()
else:
print "you must provide a filename with results"