function initialize(this,Axes)
%INITIALIZE  Initializes @timeview graphics.

%  Author(s): 
%  Copyright 1986-2002 The MathWorks, Inc.
%  $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:41:33 $

% Create empty curves (Axes = HG axes to which curves are plotted)
% Overloaded to add SelectionCurves
[Ny,Nu] = size(Axes);
Curves = [];
Watermarks = [];
for ct = Ny*Nu:-1:1
  Curves(ct,1) = line('XData', NaN, 'YData', NaN, ...
		    'Parent',Axes(ct),'Visible','off');
  Watermarks(ct,1) = line('XData', NaN, 'YData', NaN, ...
            'Parent',Axes(ct),'Visible','off','Linewidth',3,...
            'Color',[.9 .9 .9]);
  % Set the callback to write the current position to the uicontext userdata
  % so that line context menus have data on the context menu position
  selectContextMenu = uicontextmenu('Callback', ...
      @(es,ed) set(es,'Userdata',get(Axes(ct),'CurrentPoint')),'Parent',...
      ancestor(Axes(ct),'figure'));
  SelectionCurves(ct,1) = line('XData', NaN, 'YData', NaN, ...
		    'Parent',Axes(ct), 'Visible', 'off','Uicontextmenu',...
            selectContextMenu);   
  SelectionPatch(ct,1) = patch([NaN;NaN;NaN;NaN],[NaN;NaN;NaN;NaN],...
      [1 1 0.7],'Parent',Axes(ct),'Uicontextmenu',uicontextmenu(...
      'Parent',ancestor(Axes(ct),'figure')));
end
this.Curves = handle(reshape(Curves,[Ny Nu]));
this.WatermarkCurves = handle(reshape(Watermarks,[Ny Nu]));
this.SelectionCurves = handle(reshape(SelectionCurves,[Ny Nu]));
this.SelectionPatch = handle(reshape(SelectionPatch,[Ny Nu]));