comparison demo/get_graphics_options.m @ 0:74dedb26614d

Initial checkin of AIM-MAT version 1.5 (6.4.2011).
author tomwalters
date Fri, 20 May 2011 12:32:31 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:74dedb26614d
1 % demonstration file for 'aim-mat'
2 %
3 % (c) 2006-2008, University of Cambridge, Medical Research Council
4 % Tom Walters (tcw24@cam.ac.uk)
5 % http://www.pdn.cam.ac.uk/cnbh/aim2006
6 % $Date: 2008-06-10 18:00:16 +0100 (Tue, 10 Jun 2008) $
7 % $Revision: 585 $
8
9 function str=get_graphics_options(handles,module_name)
10 % returns the graphic options, if they exist
11
12 str=[];
13 if isfield(handles.all_options.graphics,module_name)
14 str=getfield(handles.all_options.graphics,module_name);
15 else
16 % disp(sprintf('graphics part for module %s not found. Check version',module_name));
17 % TCW AIM2006 changed 12 instances of 'opstr' to 'str' - bugfix - let's
18 % hope so!
19 switch handles.info.current_plot
20 case {1,2,3,4,5}
21 str.is_log=0;
22 str.time_reversed=0;
23 str.plotstyle='mesh';
24 str.plotcolor='k';
25 str.display_time=0;
26 case {6}
27 str.is_log=1;
28 str.time_reversed=1;
29 str.plotstyle='mesh';
30 str.plotcolor='k';
31 str.minimum_time=0.001;
32 str.maximum_time=0.032;
33 str.display_time=0;
34 end
35 end