ins = Gains(:);
ng = length(Gains);
% Roots
[nr,nc] = size(Roots);
if nr~=ng
    if nc==ng
        Roots = Roots.';
    else
        ctrlMsgUtils.error('Controllib:plots:Plot2','plot(RLPLOT,GAINS,ROOTS,...)',...
            'GAINS','ROOTS')
    end
end

% Create new response
try
   r = this.addresponse(1,1,1);
catch ME
   throw(ME)
end

% Store data and set properties
d = r.Data;
d.Gains  = Gains;
d.Roots = Roots;
[d.SystemZero,d.SystemPole,d.SystemGain] = zpkdata(System,'v');
if length(varargin)
   set(d,varargin{:})
end

% Focus
[d.XFocus,d.YFocus] = rloclims(Roots.');

% Draw new response
if DrawFlag
   draw(r)
end