function junk = refresh(h)
%REFRESH  Refresh graphics associated with target

%   Author(s): A. DiVergilio
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.4 $  $Date: 2000/06/14 20:15:13 $

junk = []; %---Temporary fix

%---Redraw selection line
 if ~isempty(h.Line)
    ax = get(h.Line,'Parent');
    switch get(ax,'Units')
    case 'pixels'
       ap = get(ax,'Position');
       x2 = (ap(3)+10)/ap(3);
    otherwise
       x2 = 1.05;
    end
    Handles = get(get(h.Target,'UserData'),'Handles');
    p = get([Handles.Title;Handles.Xlabel;Handles.Ylabel(1)],'Position');
    set([Handles.Title;Handles.Xlabel;Handles.Ylabel(1)],'Units','data');
    te = get(Handles.Title, 'Extent');
    xe = get(Handles.Xlabel,'Extent');
    ye = get(Handles.Ylabel(1),'Extent');
    set([Handles.Title;Handles.Xlabel;Handles.Ylabel(1)],'Units','pixels');
    set([Handles.Title;Handles.Xlabel;Handles.Ylabel(1)],{'Position'},p);
    set(h.Line,...
       'xdata',[ye(1) x2 x2 ye(1) ye(1)],...
       'ydata',[xe(2) xe(2) te(2)+te(4) te(2)+te(4) xe(2)]);
 end
