Home > SuperSegger > gate > plotClist3D.m

plotClist3D

PURPOSE ^

gateHist : makes a plot for from the 3dclist for all cells with time.

SYNOPSIS ^

function x = plotClist3D(clist, ind)

DESCRIPTION ^

 gateHist : makes a plot for from the 3dclist for all cells with time.
 It uses the given clist index. It first gates the list if there is a
 gate field in clist.

 INPUT :
   clist : list of cells with time-independent info
   ind : indices of clist 3d definition used for x and y label [x,y]

 OUTPUT :
   x : plot array

 Copyright (C) 2016 Wiggins Lab
 Written by Paul Wiggins.
 University of Washington, 2016
 This file is part of SuperSegger.

 SuperSegger is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 SuperSegger is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with SuperSegger.  If not, see <http://www.gnu.org/licenses/>.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function x = plotClist3D(clist, ind)
0002 % gateHist : makes a plot for from the 3dclist for all cells with time.
0003 % It uses the given clist index. It first gates the list if there is a
0004 % gate field in clist.
0005 %
0006 % INPUT :
0007 %   clist : list of cells with time-independent info
0008 %   ind : indices of clist 3d definition used for x and y label [x,y]
0009 %
0010 % OUTPUT :
0011 %   x : plot array
0012 %
0013 % Copyright (C) 2016 Wiggins Lab
0014 % Written by Paul Wiggins.
0015 % University of Washington, 2016
0016 % This file is part of SuperSegger.
0017 %
0018 % SuperSegger is free software: you can redistribute it and/or modify
0019 % it under the terms of the GNU General Public License as published by
0020 % the Free Software Foundation, either version 3 of the License, or
0021 % (at your option) any later version.
0022 %
0023 % SuperSegger is distributed in the hope that it will be useful,
0024 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0025 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0026 % GNU General Public License for more details.
0027 %
0028 % You should have received a copy of the GNU General Public License
0029 % along with SuperSegger.  If not, see <http://www.gnu.org/licenses/>.
0030 
0031 
0032 clist = gate(clist);
0033 nind = numel(ind);
0034 
0035 if ~isfield(clist,'data3D')
0036     disp('3D clist is not supported')
0037     return;
0038 end
0039 
0040 if nind == 1
0041     clf;
0042     x = squeeze(clist.data3D(:,ind,:))';
0043     plot(x);
0044     set( gca, 'YDir', 'normal' );
0045     if isfield (clist,'def3d')
0046         ylabel( clist.def3d{ind} );
0047     elseif isfield (clist,'def3D')
0048         ylabel( clist.def3D{ind} );
0049     end
0050     xlabel( 'Time (frame)' );
0051 else
0052     disp('Error in plotClist3D: too many indices in ind');
0053 end
0054 
0055 
0056 
0057 end

Generated on Thu 19-Jan-2017 13:55:21 by m2html © 2005