Building a rotating 3D graph and exporting it as a GIF