/* ** Contour_label ** ** Purpose: ** Depict the use of a text label in a contour plot ** ** Author: ** Charles Bos ** ** Date: ** 29/6/2005 */ #include #include main() { DrawBivDensity(0, rann(2, 1000), {"a", "b"}, 1, 0, 0, 2); DrawBivDensity(1, rann(2, 1000), "", 1, 0, 0, 2); // Draw a label within the surface, at the upper right corner, right // aligned. The z-coordinate of 0 places the label at the bottom, though // you cannot see it in a contour plot. DrawText(1, "a x b", .99, .99, 0, 0, 0, 0, 1, 0, "right"); DrawAdjust(ADJ_AREAMATRIX, 1, 2); ShowDrawWindow(); }