#!/usr/bin/python from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt func=np.loadtxt("lorentz.dat") x=func[:,1] y=func[:,2] z=func[:,3] fig=plt.figure() p3d=plt.axes(projection='3d') p3d.plot(x,y,z,color="red") plt.show()