Grocer Function
NAME
drawy - draw a readable y axis
CALLING SEQUENCE
y0=drawy(y,font_axis,y0,x0,dircar)
PARAMETERS
Input
-
y = the y matrix of the graph
-
font_axis = size of characters on the axis
-
y0 = value of the y axis where to draw the x axis or [] if the user wants to put the x axis at the minimum y value
-
x0 = value of the y axis where to draw the x axis (default: 1)
-
dircar= the tics direction (default: 'l'; see drawaxis for details)
Output
-
y0=value of the y axis where to draw the x axis
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