<< pltseries Printings and graphs plttvp >>

Grocer >> Printings and graphs > pltseries0

pltseries0

2d plot

CALLING SEQUENCE

pltseries0(y,y0,title,xscale0,wind,arg1,...,argn)

PARAMETERS

Input

* y = the (nxp) values real matrix of the graphed series

* y0 = the value where to draw the x axis or [] if the user wants the axis to be put a the y minimum value

* xscale0 = a (nx1) string vector representing the x scale

* title = title of the graph

* wind = the number of the window where to draw the graph (-1 if the user wants to draw it on the currently opened window)

* argi = optional arguments:

  - 'styleg = xx' with xx integer representing the location of the legend (default: 5, that is the legend is placed interactively with the mouse, see legends in the help menu)

  - 'color = xx' with xxinteger row vector of size p representing the line color of each series

  - 'mycolor=[r1,g1,b1;...;rp,gp,bp]' for user defined colors with ri,gi,bi the RGB integer values of a color

  - 'shade=xx' a (nx1) vector composed of 0 and 1 where the ones delimit areas to be shaded

  - 'style = xx' with xx' integer row vector of size p representing the line style of each series

  - 'thickn = xx' with xx integer vector of size p representing the thickness of the line drawn for each series (default all equal to 1)

  - 'leg = xx' with xxtitle of the legend

  - 'yaxis = xx' with xx integer row vector of size p representing the axis for each series (1=left; 2=right)

  - 'bars = xx' with xx integer row vector of size p representing the nature of the representation of the series (1=bars; anything else = curves)

  - 'x0(1)=xx' with xx integer representing the x location of the first y axis (default: put at x=1)

  - 'x0(2)=xx' with xx integer representing the x location of the second y axis (default: put at x=nobs)

  - 'font_legend=xx' with xx the size of the legend font

  - 'font_title=xx' with xx the size of the title font

  - 'font_axis=xx' with xx the size of the axis font

  -'style_title=xx' with xx the font style of the title

  - 'ntics=xx' with xx an integer representing number of of tics between 2 occurences of the axis values

  - 'just_scale=bool' with bool 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)

 

Output

* nothing (printed on a graphic window)

DESCRIPTION

Plots series allowing complex x scale (for instance, coming from a ts) and y scale (for instance 2 different axes).

EXAMPLE

pltseries0([log(1:4)' sqrt(1:4)'],[],'example',['winter' 'spring' 'summer' 'autumn'],1)
 
// draws a graph with an x axis representing the 4 seasons. Y matrix
// is [log(1:4)' sqrt(1:4)'], x axis is put at the minimum y value. Title is 'example' and graphic window is numbered 1.

AUTHOR

Eric Dubois 2004-2006

Report an issue
<< pltseries Printings and graphs plttvp >>