coding UTF-8; // Required to handle 3D graphs import tool.Graph3D; // Writing sample coordinate data to file ("wtsv" means tab-separated format) int file = open("sample3d.txt", "wtsv"); for(int i=0; i<=10; i++){ float x = i; float y = x * x; float z = x + y; writeln(file, x, y, z); } close(file); // Launching the 3D graph int graph = newGraph3D(); // Plotting the file on the 3D graph setGraph3DFile(graph, "sample3d.txt");