Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@plottools/allyscale.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % ALLYSCALE Set all the Y scales on the current figure. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: ALLYSCALE Set all the Y scales on the current figure. | |
5 % | |
6 % CALL: allyscale(scale) scale = 'lin' or 'log'; | |
7 % | |
8 % VERSION: $Id: allyscale.m,v 1.1 2008/08/05 17:51:32 ingo Exp $ | |
9 % | |
10 % HISTORY: 02-05-2004 M Hewitson | |
11 % Creation. | |
12 % | |
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
14 | |
15 function allyscale(scale) | |
16 | |
17 c = get(gcf, 'children'); | |
18 | |
19 if ~(strcmpi(scale, 'lin') || (strcmpi(scale, 'log'))) | |
20 error('### please use ''lin'' or ''log'' as an input.') | |
21 end | |
22 | |
23 for k=1:length(c) | |
24 | |
25 t = get(c(k), 'Tag'); | |
26 if isempty(t) | |
27 set(c(k), 'YScale', scale); | |
28 end | |
29 | |
30 end | |
31 | |
32 end | |
33 |