function str = maketip(this,tip,info)
%MAKETIP  Build data tips for @bodeview curves.
%
%   INFO is a structure built dynamically by the data tip interface
%   and passed to MAKETIP to facilitate construction of the tip text.

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

r = info.Carrier;
AxGrid = info.View.AxesGrid;

% Create tip text
if length(r.RowIndex)>1
    str{1,1} = sprintf('Time series: %s Column: %d',r.Name,info.Row);
else
    str{1,1} = sprintf('Time series: %s',r.Name);
end

[iotxt,ShowFlag] = rcinfo(r,info.Row,info.Col);
if any(AxGrid.Size(1:2)>1) | ShowFlag
   % Show if MIMO or non trivial
   str{end+1,1} = iotxt;
end
str{end+1,1} = sprintf('Frequency (%s): %0.3g', AxGrid.XUnits,tip.Position(1));
str{end+1,1} = sprintf('Magnitude: %0.3g',...
  tip.Position(2));

