#include <oxstd.h>
#include <oxdraw.h>
// test of text labels for axis
main()
{
    decl m = rann(30,1);
    Draw(0, m', 0, 1);                    // draw 1 variables
    DrawAxisAuto(0, FALSE);            // draw default y-axis
    DrawAxisAuto(0, TRUE, FALSE);            // remove x-axis

	DrawAdjust(ADJ_AREA_Y, 0, -2, 2);// fix y world dimension
	DrawAdjust(ADJ_AREA_X, 0, 0, 30);// fix x world dimension
       // add a customized x axis at y=-2 from 0 to 30
    DrawAxis(0, TRUE, -2, 0, 30, 10, 10, 1, 0);
    DrawAdjust(ADJ_AXISLABEL, 0, 1, -1);//no labels on x-axis
	
	DrawText(0, "ten", 10, -2.2); // now add some text labels
	DrawText(0, "twenty", 20, -2.2);
	
	ShowDrawWindow();                 // show this concoction
}
