Grocer Function
NAME
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 n(x1) 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 = integer row vector of size p 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 = integer row vector of size p representing the line color of each series
- style = integer row vector of size p representing the line style of each series
- leg = title of the legend
- yaxis = 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)
Output
-
nothing (printed on a graphic window)
DESCRIPTION
Plots series allowing complex x scale (for instance, coming from a ts).
EXAMPLE
1) pltseries0(grocer_y,y0,tit,xscale0,wind,'leg='+strleg,yax,varargin(:))
2) pltseries0([log(1:4)' sqrt(1:4)'],[],'example',['winter' 'spring' 'summer' 'autumn'],1)
Example 1 is taken from function pltseries.
Example 2 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