Mercurial > hg > ltpda
comparison m-toolbox/classes/@ao/plot.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % PLOT a simple plot of analysis objects. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: PLOT a simple plot of analysis objects. | |
5 % | |
6 % CALL: plot(ao) | |
7 % plot(ao,LineSpec) | |
8 % plot(axes_handle, ao) | |
9 % plot(axes_handle, ao, LineSpec) | |
10 % plot(...,'PropertyName',PropertyValue,...) | |
11 % [line_h] = plot(...) | |
12 % [line_h, axes_h] = plot(...) | |
13 % [line_h, axes_h, figure_h] = plot(...) | |
14 % | |
15 % VERSION: $Id: plot.m,v 1.44 2011/03/28 12:45:33 hewitson Exp $ | |
16 % | |
17 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
18 | |
19 function varargout = plot(varargin) | |
20 | |
21 % Check if this is a call for parameters | |
22 if utils.helper.isinfocall(varargin{:}) | |
23 varargout{1} = getInfo(varargin{3}); | |
24 return | |
25 end | |
26 | |
27 error('### This method is obsolete. Please use the iplot method.'); | |
28 | |
29 end | |
30 | |
31 %-------------------------------------------------------------------------- | |
32 % Get Info Object | |
33 %-------------------------------------------------------------------------- | |
34 function ii = getInfo(varargin) | |
35 if nargin == 1 && strcmpi(varargin{1}, 'None') | |
36 sets = {}; | |
37 pl = []; | |
38 else | |
39 sets = {'Default'}; | |
40 pl = getDefaultPlist; | |
41 end | |
42 % Build info object | |
43 ii = minfo(mfilename, 'ao', 'ltpda', utils.const.categories.internal, '$Id: plot.m,v 1.44 2011/03/28 12:45:33 hewitson Exp $', sets, pl); | |
44 ii.setModifier(false); | |
45 ii.setOutmin(0); | |
46 end | |
47 | |
48 %-------------------------------------------------------------------------- | |
49 % Get Default Plist | |
50 %-------------------------------------------------------------------------- | |
51 function plout = getDefaultPlist() | |
52 persistent pl; | |
53 if exist('pl', 'var')==0 || isempty(pl) | |
54 pl = buildplist(); | |
55 end | |
56 plout = pl; | |
57 end | |
58 | |
59 function pl = buildplist() | |
60 pl = plist.EMPTY_PLIST; | |
61 end | |
62 | |
63 % END | |
64 | |
65 |