Mercurial > hg > ltpda
comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_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 function ltpdv_plot(varargin) | |
2 | |
3 % Handles | |
4 myh = varargin{1}; | |
5 mainfig = varargin{end}; | |
6 | |
7 % Get selected objects | |
8 objs = ltpdv_get_selected_objs(mainfig); | |
9 | |
10 % Pass AOs to iplot | |
11 as = []; | |
12 for j=1:length(objs) | |
13 obj = objs{j} | |
14 if isa(obj, 'ao') | |
15 as = [as obj]; | |
16 else | |
17 warning('!!! Skipping object %s - it''s not an AO.', obj.name); | |
18 end | |
19 end | |
20 | |
21 if ~isempty(as) | |
22 iplot(as) | |
23 end |