Grocer Function

NAME

drawy - draw a readable y axis

CALLING SEQUENCE

y0=drawy(y,font_axis,y0,x0,dircar)

PARAMETERS

Input

Output

DESCRIPTION

Draws an y axis which remains readable whatever number of values it contains. Must be used after a 2D graphic instruction (such as plot2d).

EXAMPLE

1) y0=drawy(y(:,y_1),font_axis,y0)
2) y0=drawy([sqrt([1:12])' log([1:12])'],3,[],0,'l')

Example 1 is taken from function pltseries0.
Example 2 draws an y axis associated with the values of the matrix [sqrt([1:12] log([1:12]). The font size is 3 and the axis is located at x=0, the direction of the tics is the left one. Lastly, drawy calculates the minimum y value to feed frunction drawx.

AUTHOR

Eric Dubois 2002