www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgsurfview/@lineplot/lineplot.m

    function obj = lineplot(varargin)
%LINEPLOT Constructor for line plot component
%
% obj = cgsurfview.lineplot('Parent',parent);

%  Copyright 2000-2013 The MathWorks, Inc. and Ford Global Technologies, Inc.


if nargin && isa(varargin{1}, 'cgsurfview.lineplot')
   obj = varargin{1};
   varargin(1) = [];
else
   obj = cgsurfview.lineplot;
end

% Call parent class constructor
obj.abstractplot(varargin{:});

w = mbcgui.widget.AxesContainer(...
    'Parent',obj.Parent, ...
    'Visible', obj.Visible,...
    'PositionSetting','outer');
obj.hAxes = w.AxesHandle;
set(obj.hAxes,...
    'Units','pixels','Box','on',...
    'HitTest', 'off');
obj.Display = w;