// Discussion: // // The "CMM=string" argument on the plot command seems to print a comment string // as part of the plot. // // Location: // // http://people.sc.fsu.edu/~jburkardt/freefem_src/plot_test/plot_test.edp // // Licensing: // // This code is distributed under the MIT license. // // Modified: // // 21 June 2015 // cout << "\n"; cout << "plot_test\n"; cout << " FreeFem++ version\n"; cout << " Test features of the plot() function\n"; // // Define Gamma1 and Gamma2, the boundaries. // A and B are the lengths of the semimajor and semiminor axes: // THETA specifies the angle at which we switch from GAMMA1 to GAMMA2. // real a = 2.0; real b = 1.0; real theta = 4.0 * pi / 3.0; border Gamma1 ( t = 0, theta ) { x = a * cos(t); y = b*sin(t); } border Gamma2 ( t = theta, 2*pi ) { x = a * cos(t); y = b*sin(t); } // // Define Th, the triangulation of the "left" side of the boundaries. // mesh Th = buildmesh ( Gamma1(100) + Gamma2(50) ); // // Plot the mesh. // plot ( Th, wait = true, ps = "plot_test_cmm_no.ps" ); plot ( Th, wait = true, cmm = "This is a plot of the mesh!", ps = "plot_test_cmm_yes.ps" ); // // Terminate. // cout << "\n"; cout << "plot_test:\n"; cout << " Normal end of execution.\n"; exit ( 0 );