<< dealyna Printings and graphs drawy >>

Grocer >> Printings and graphs > drawx

drawx

draw a readable x axis

CALLING SEQUENCE

drawx(xscale0,dilat,ref_nbinter,font_axis,y0,x0)

PARAMETERS

Input

* xscale0 = a (1 x nobs) string vector, representing the scale

* ref_nbinter = a number indicating the maximum numbers of chars that can be displayed

* dilat = the dilatation factor (the width of a single value of the axis)

* font_axis = size of characters on the axis

* y0 = value of the y axis where to draw the x axis

* x0 = value of the first x value used (default: 1)

 

Output

* nothing (printed on a graphic window)

DESCRIPTION

Draws an x axis which remains readable whatever number of values it contains. The parameter ref_nbinter must be adapted to the size of the screen (function param_graph). Must be used after a 2D graphic instruction (such as plot2d).

EXAMPLE

drawx(string([1:100]),20,3,0)
// Example draws an x axis with range going from 1 to 100,
// a maximum number of chars on the axis equal to 20,
// a font size of 3 and at the axis is located at y=0.

AUTHOR

Eric Dubois 2002

Report an issue
<< dealyna Printings and graphs drawy >>