tomwalters@0: % demonstration file for 'aim-mat' tomwalters@0: % tomwalters@0: % (c) 2006-2008, University of Cambridge, Medical Research Council tomwalters@0: % Tom Walters (tcw24@cam.ac.uk) tomwalters@0: % http://www.pdn.cam.ac.uk/cnbh/aim2006 tomwalters@0: % $Date: 2008-06-10 18:00:16 +0100 (Tue, 10 Jun 2008) $ tomwalters@0: % $Revision: 585 $ tomwalters@0: tomwalters@0: function str=get_graphics_options(handles,module_name) tomwalters@0: % returns the graphic options, if they exist tomwalters@0: tomwalters@0: str=[]; tomwalters@0: if isfield(handles.all_options.graphics,module_name) tomwalters@0: str=getfield(handles.all_options.graphics,module_name); tomwalters@0: else tomwalters@0: % disp(sprintf('graphics part for module %s not found. Check version',module_name)); tomwalters@0: % TCW AIM2006 changed 12 instances of 'opstr' to 'str' - bugfix - let's tomwalters@0: % hope so! tomwalters@0: switch handles.info.current_plot tomwalters@0: case {1,2,3,4,5} tomwalters@0: str.is_log=0; tomwalters@0: str.time_reversed=0; tomwalters@0: str.plotstyle='mesh'; tomwalters@0: str.plotcolor='k'; tomwalters@0: str.display_time=0; tomwalters@0: case {6} tomwalters@0: str.is_log=1; tomwalters@0: str.time_reversed=1; tomwalters@0: str.plotstyle='mesh'; tomwalters@0: str.plotcolor='k'; tomwalters@0: str.minimum_time=0.001; tomwalters@0: str.maximum_time=0.032; tomwalters@0: str.display_time=0; tomwalters@0: end tomwalters@0: end