Grocer Function

NAME

pltseries - 2d plot

CALLING SEQUENCE

pltseries(arg1,...,argn)

PARAMETERS

Input

in any order: argi =

Output

DESCRIPTION

Plots series... This function allows the user to make some complex graphs by gathering in one function some capabilities emboddied in scilab graphic functions drawaxis, legend and xset. The user can graph vectors and martrices, as with plot2d, but also timeseries. She can choose to use 2 y axes instead of one by setting the option 'yaxis=...'. She can choose the position of the x axis with the option 'yaxex=...'. She can control the color and style of the lines and the location of the legend.

EXAMPLE

1) load('SCI/macros/grocer/db/bdhenderic.dat'); pltseries('delts(lm1)','delts(lp)')
2) pltseries('ly+lp-lm1','rnet','title=money velocity and interest rate', 'yaxis=[1 2 ]','leg=[money velocity (lhs);interest rate (rhs)','color=[2 6]','styleg=3', 'window=3','bounds=[''1968q1'';''1985q4'']')

Example 1 shows the simplest use of pltseries: only the series (here ts) are entered.
Example 2 shows a complex use: the user chooses her legend, title, colors, style and ts bounds. The legend is drawn in the lower left-hand corner. The first series is represented along the lhs x scale and the second one along the rhs y axis.

AUTHOR

Eric Dubois 2002