Check here for my Lua/löve2d code for visualizing trajectories of the Lorenz system.