Mercurial > hg > ltpda
annotate m-toolbox/m/gui/ltpdv/callbacks/ltpdv_hist_plot.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
rev | line source |
---|---|
0 | 1 function ltpdv_hist_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 for j=1:length(objs) | |
12 obj = objs{j}; | |
13 if isa(obj, 'ao') | |
14 plot(obj.hist); | |
15 else | |
16 warning('!!! Skipping object %s - it''s not an AO.', obj.name); | |
17 end | |
18 end |