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