|
|
ACON
Home/Topics |
Commands |
More Examples
Isoline Contouring

/* This script demonstrates Isoline Contouring*/
/*-----------------------------------------------------*/
/* Read the data from a file */
/*-----------------------------------------------------*/
Matrix_Read(cat(HostPath(),"Test Data/TestData.txt"),"xyz",1,1 2 3);
/* The data has now been read into memory */
/*-----------------------------------------------------*/
/* Now plot the data as data points and label them */
/*-----------------------------------------------------*/
/* longitude latitude limits of plot */
/* left, right, bottom, top */
Data_Window(-67,-62,41,44.0);
/* position on page of the axis border rectangle */
/* left, right, bottom, top */
Data_Viewport(mm(20),mm(90),mm(190),mm(260));
Data_Projection("MERCATOR"); /* use mercator projection */
/* draw axis, 1 deg labels, 0.5 deg tics, left and bottom edges */
Axis(1,1,0.5,0.5,1,0,1,0,0);
Draw_Text(mm(32),mm(192),"Contour Lines");
Data_Interpolation(0,1.5);/* inverse distance weighted gradient interpolation */
Data_Subtriangles(9);
Blanking_Distance(5);
Data_Contour_Levels(15,0.75,20,0.5,25,0.2,30,0);/* grey level for each data level */
Contour_Method(1);
Contour_Lines(xyz); /* show the data as a contour plot */
/* draw a section of the Nova Scotia coastline */
Overlay_file(mappath("COAST1"));
Overlay_file(mappath("Depthm200"));
ACON
Home/Topics |
Commands |
More Examples
|
Last Modified : 2003-11-19
|
|