<< drawx Printings and graphs fan_chart >>

Grocer >> Printings and graphs > drawy

drawy

draw a readable y axis

CALLING SEQUENCE

y0=drawy(y,font_axis,y0,x0,dircar,just_scale,rev,sep)

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)

* just_scale = a boolean which is:

      - %T if you want the y scale to be exactly the length [min(y),max(y)]

      - %F if you want the y scale to begin and end with rounded numbers (default)

* rev = a boolean which is:

      - %T if you want the y scale to be drawn in reverse order

      - %F if you want the y scale to be drawn in standard order (default)

* sep = the decimal separator the user wants to use for the plotting (default = '.')

 

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

y0=drawy([sqrt([1:12])' log([1:12])'],3,[],0,'l')
 
// Example 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-2008

Report an issue
<< drawx Printings and graphs fan_chart >>