Name

GRAPH_DATE — Function to add date values in abscissae of time series graphs

Calling Sequence

[ok]=GRAPH_DATE(f,TS)

Parameters

f

Number of the figure to modify (axes handle obtained with gca() function)

TS

Time step increment of abscissae. Must take values of the form [Nb of TS].[TS name] with [TS name]= "y","m","d". ex: 3.m -> 3 months ticked graph

Description

  • The function plots the time series on small graphs and save them under a gif file format.

Examples

   // data to be plotted
   x = (c_CONVDATE(0,199001010000):c_CONVDATE(0,199510010000))'; 
   y = convol(ones(100,1),rand(size(x,1),1));
   y = max(40,y(100:$)');
   
   // Graph
   plot(x,y);xtitle('','Date','');

   // Dates
   GRAPH_DATE('1.y')
   
  

See Also

gca

Authors

Julien Lerat

CEMAGREF Antony, HBAN Unit, julien.lerat@cemagref.fr