#!/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"