-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotting_graphMetrics.m
More file actions
32 lines (24 loc) · 1.17 KB
/
Copy pathplotting_graphMetrics.m
File metadata and controls
32 lines (24 loc) · 1.17 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
function plotting_graphMetrics(G, metrics, grainsVar, mergedGrains, connectedGrains)
% Create comprehensive twin analysis plots
% Inputs:
% G - graph object from twin network
% metrics - structure from calculateTwinMetrics
% grainsVar - grains or parentGrains variable
imgSampPath = evalin('base', 'imgSampPath');
samp_name = evalin('base', 'samp_name');
methodName = evalin('base', 'methodName');
phaseName = evalin('base', 'phaseName');
if length(grainsVar.mineralList) > 1
grainsVar = grainsVar(phaseName);
end
% Twin order distribution with centrality correlation
plot_TwinOrder(G, metrics, imgSampPath, samp_name, methodName);
% Max twin depth plots
plot_MaxTwinDepth(metrics, grainsVar, mergedGrains, imgSampPath, samp_name, methodName);
% Twin variant distribution
plot_TwinVariants(metrics, imgSampPath, samp_name, methodName);
% Twin degree connectivity
plot_TwinDegree(metrics, grainsVar, mergedGrains, imgSampPath, samp_name, methodName);
% Connected components
plot_ConnComponents(metrics, grainsVar, connectedGrains, imgSampPath, samp_name, methodName);
end