-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotSomatofugalPropColorByTree2.m
More file actions
47 lines (35 loc) · 1.54 KB
/
plotSomatofugalPropColorByTree2.m
File metadata and controls
47 lines (35 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function plotSomatofugalPropColorByTree2 (mnProperties, parameters, metric, propName, sym, siz, cmap, showOnlyTree, yScaleFactor)
zeroOrderSegments = mnProperties.data.zeroOrderSegments;
somatofugalProp = [];
group_array = {};
x = [];
if showOnlyTree
somatof = getSomatofugalProperties (mnProperties, parameters, metric, showOnlyTree);
b = somatof.(propName);
aux = 0;
for j = 1:length(b)
aux = aux + parameters.somatofugalParams.step;
somatofugalProp = [somatofugalProp; b{j}];
for k = 1:length(b{j})
x = [x; aux];
group_array = [group_array; num2str(showOnlyTree)];
end
end
h = plot(x, yScaleFactor .* somatofugalProp, 'lineStyle', 'none', 'Marker', sym, 'MarkerSize', siz, 'Color', cmap(showOnlyTree,:));
else
for i = 1:length(zeroOrderSegments)
somatof = getSomatofugalProperties3 (mnProperties, parameters, metric, i, 0);
b = somatof.(propName);
aux = 0;
for j = 1:length(b)
aux = aux + parameters.somatofugalParams.step;
somatofugalProp = [somatofugalProp; b{j}];
for k = 1:length(b{j})
x = [x; aux];
group_array = [group_array; num2str(i)];
end
end
end
plot2DScatter( x, yScaleFactor .* somatofugalProp, group_array, sym, siz, cmap);
end
end