Mercurial > hg > aimmat
annotate demo/get_graphics_options.m @ 4:537f939baef0 tip
various bug fixes and changed copyright message
author | Stefan Bleeck <bleeck@gmail.com> |
---|---|
date | Tue, 16 Aug 2011 14:37:17 +0100 |
parents | 74dedb26614d |
children |
rev | line source |
---|---|
tomwalters@0 | 1 % demonstration file for 'aim-mat' |
tomwalters@0 | 2 % |
tomwalters@0 | 3 % (c) 2006-2008, University of Cambridge, Medical Research Council |
tomwalters@0 | 4 % Tom Walters (tcw24@cam.ac.uk) |
tomwalters@0 | 5 % http://www.pdn.cam.ac.uk/cnbh/aim2006 |
tomwalters@0 | 6 % $Date: 2008-06-10 18:00:16 +0100 (Tue, 10 Jun 2008) $ |
tomwalters@0 | 7 % $Revision: 585 $ |
tomwalters@0 | 8 |
tomwalters@0 | 9 function str=get_graphics_options(handles,module_name) |
tomwalters@0 | 10 % returns the graphic options, if they exist |
tomwalters@0 | 11 |
tomwalters@0 | 12 str=[]; |
tomwalters@0 | 13 if isfield(handles.all_options.graphics,module_name) |
tomwalters@0 | 14 str=getfield(handles.all_options.graphics,module_name); |
tomwalters@0 | 15 else |
tomwalters@0 | 16 % disp(sprintf('graphics part for module %s not found. Check version',module_name)); |
tomwalters@0 | 17 % TCW AIM2006 changed 12 instances of 'opstr' to 'str' - bugfix - let's |
tomwalters@0 | 18 % hope so! |
tomwalters@0 | 19 switch handles.info.current_plot |
tomwalters@0 | 20 case {1,2,3,4,5} |
tomwalters@0 | 21 str.is_log=0; |
tomwalters@0 | 22 str.time_reversed=0; |
tomwalters@0 | 23 str.plotstyle='mesh'; |
tomwalters@0 | 24 str.plotcolor='k'; |
tomwalters@0 | 25 str.display_time=0; |
tomwalters@0 | 26 case {6} |
tomwalters@0 | 27 str.is_log=1; |
tomwalters@0 | 28 str.time_reversed=1; |
tomwalters@0 | 29 str.plotstyle='mesh'; |
tomwalters@0 | 30 str.plotcolor='k'; |
tomwalters@0 | 31 str.minimum_time=0.001; |
tomwalters@0 | 32 str.maximum_time=0.032; |
tomwalters@0 | 33 str.display_time=0; |
tomwalters@0 | 34 end |
tomwalters@0 | 35 end |